troubleshooting Question

Print formatting progress in embedded MS WebBrowser control

Avatar of DanCooperstock
DanCooperstock asked on
3 Comments1 Solution386 ViewsLast Modified:
I'm embedding a WebBrowser control in an application, which happens to be PowerBuilder (but I don't think that's relevant to this question - the same issues would appear in, say, VB).

I'm then loading a document (which is actually a mail-merged document, and may be a many pages long), and giving the user an option to print it to PDF using a PDF printer SDK.

That PDF SDK gives me progress messages at the end of each page printed, so I can put up a message like "Printed page N of M". However, with very long documents, those messages don't start for a long time (like, over a minute for one 240-page document), and then they all go by quite quickly.

That makes me think that the WebBrowser control is spending a lot of time internally formatting the document for the printer, before it starts spooling it to the printer at all. Is there any way to get any progress messages out of the WebBrowser control for this, to give the user a better notion of progress?

I have investigated the progresschange event, but that only fires while loading documents.

I'm guessing that the answer to this is that there is no way to do this, but I thought it might be worth asking in case there is something I have overlooked. Thanks.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros