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.