ExecWB() sometimes doesn't print

C

catchanu

Hi,

I am using vb scripts in vb.net application to print html files that
are generated on fly and needs to print.
I have the code like this:


BrowserObject.Navigate2()
If (BrowserObject.QueryStatusWB(SHDocVw.OLECMDID.OLECMDID_PRINT) =
SHDocVw.OLECMDF.OLECMDF_SUPPORTED + SHDocVw.OLECMDF.OLECMDF_ENABLED)
Then

BrowserObject.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT,
SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER)

Endif
most of the times it is successful, but once in 100 times it is
failing, it is not printing at all but event log shows print activity?
This is running in win2003 on ISM (IIS) server.
Really appreciate help
thanks a lot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top