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
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