|
-
Feb 26th, 2004, 10:25 AM
#1
Thread Starter
Addicted Member
[VB] - Internet Control, ExecWB, wait printer completion
After hours of search through forums I've finally found a really easy solution for wainting on a print job from the execWB method of the Internet Control.
The article can be found here (it's a C# article):
http://www.experts-exchange.com/Prog..._20809799.html
and here's the code to do so in VB:
VB Code:
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, 2, vbNull
This command print the current document without the print dialog box and wait for it's completion. So you can use a loop to go through all your documents and invoke this command for each document and get them in the appropriate order.
You don't have to rely now on the Sub win_onafterprint or other things.
It's so easy and so hard to find!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|