Jump to content
Sign in to follow this  

Print file

Recommended Posts

Hi people,

I know how to print a file:

#include <File.au3>

$file = FileOpenDialog("Print File", "", "Text Documents (*.txt)", 1)

If @error Then Exit

$print = _FilePrint($file)

If $print Then

MsgBox(0, "Print", "The file was printed.")


MsgBox(0, "Print", "Error: " & @error & @CRLF & "The file was not printed.")


But what i want:

It must open a dialog where i can select the printer where to print to.

And i don't need to select a file but i need to print the standard file when the program closes..

Who can help me

Gr Erik

I little problem, hard to find and fix

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...