I'm very new to C# and have written a small app that I intend to call from a larger c++ app. Anyway, this small c# app simply takes a URL and prints it once it has loaded, this works fine. However my problem is that, once printed, I want the app to close, but there is no event or status returned from the print calls on the "System.Windows.Forms.WebBrowser" object.
Does anyone know how I can determine if something is in the print queue? Or failing that, does anyone have any ideas of other ways to solve this problem?
Thanks in advance for any help!
Lewis
Loading
LewisPosted Jul 11, 2008, 4:42 AM
Thanks for your time.
Lewis
Sunny ChenPosted Jul 11, 2008, 4:03 AM
I think it might not be easy to identify the status of the printer. Because your printing is the SPOOL operation and the method would return immediately once the content was sent to the printer. No matter if it succeeded or not, that's the printer's business. Of course the printer won't send the printing status to your program.