ShellExecute hwnd, "print", "file1.htm", vbNullString, vbNullString, SW_SHOW
ShellExecute hwnd, "print", "file2.htm", vbNullString, vbNullString, SW_SHOW
ShellExecute hwnd, "print", "file3.htm", vbNullString, vbNullString, SW_SHOW
The problem is that Windows displays the print dialog box before printing each file. How can I have Windows simply print the files without displaying the dialog box?
Thanks,
Rich...
"rpotash" <anon...@discussions.microsoft.com> wrote
For examples, go here:
http://groups.google.com/advanced_group_search?q=group:microsoft.public.vb.*&hl=en&safe=off&num=50
Type in what you see in caps:
EXECWB PRINT DONTPROMPTUSER
Basically, you can load the files into a WebBrowser control and use its ExecWB
method to print the page. OLECMDEXECOPT_DONTPROMPTUSER is the
cmdexecopt (parameter value) that tells it not to show that dialog box.
LFS