Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing several files in the background without print options dialog!

Status
Not open for further replies.

lehu

Technical User
Nov 21, 2000
4
SE
How to automatically print several PDF-files in the background with the
default printer and without getting the print options dialogue ?

This code(snippet) gets one PDF-file printed, but I still get the print
options dialogue.

For Counter = 1 To UBound(MyList)
ShellExecute lnghWnd, Print, MyList(Counter), vbNullString, "D:\tmp\", SW_HIDE
Next

When for example MyList(1) = "Test1.pdf" and MyList(2) = "Test2.pdf" only
Test1.pdf gets printed...

Does anybody know how to prevent the print options dialogue from being
presented and how to make it work for several files?

Any help appreciated.

Regards,
Leif Huntus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top