Click to See Complete Forum and Search --> : Sending File To Printer


PrasadK
August 3rd, 1999, 09:55 PM
Hello Friend,

I am using the concept of Text I/O and creating a report in visual basic, I want to send the report to the printer directly .. In this regard I was using the Printer object print command but it is not that efficient.. Can U suggest me any API wherein I can directly send the File to the printer ..

Urgent!!

Regards

Prasasd

Lothar Haensler
August 4th, 1999, 02:30 AM
you can use the ShellExecute API and specify "print" as the second parameter.
This will invoke the application that is associated with the extention and cause it to print the file.