Erik. Posted February 5, 2007 Share Posted February 5, 2007 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.") Else MsgBox(0, "Print", "Error: " & @error & @CRLF & "The file was not printed.") EndIf 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 Link to comment Share on other sites More sharing options...
evilertoaster Posted February 5, 2007 Share Posted February 5, 2007 _fileprint will print to the defualt printer...http://www.autoitscript.com/forum/index.ph...mp;#entry133361that post has someone who made a script that can change defualt printers and then change them back to normal. combo of the two should work Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now