J
John Bowman
Hi,
I've been reading through the threads on using the WebBrowser control in C#
app's and how to print it's contents. I've got that much working. However,
the big problem is I can't figure out how to detect when the printing is
finished. I've read the article "Printing with the Internet Explorer
WebBrowser Control" and it mentions some sample code in pwaitvb. This
example pretty much useless to me because VB hides the how to do it. I can't
figure out how to wire up the OnAfterPrint event (mentioned in the article)
to a method in my C# class so I can detect when it's finished. Does anyone
know how to do this and/or have some sample code that does it?
BTW, does anyone know why MS doesn't have a true .NET web browser control
available? Seems there's plenty of interest by searching nuermous websites
and newsgroups. Being forced to use COM interop just for displaying/printing
some data seems like a waste.
TIA,
I've been reading through the threads on using the WebBrowser control in C#
app's and how to print it's contents. I've got that much working. However,
the big problem is I can't figure out how to detect when the printing is
finished. I've read the article "Printing with the Internet Explorer
WebBrowser Control" and it mentions some sample code in pwaitvb. This
example pretty much useless to me because VB hides the how to do it. I can't
figure out how to wire up the OnAfterPrint event (mentioned in the article)
to a method in my C# class so I can detect when it's finished. Does anyone
know how to do this and/or have some sample code that does it?
BTW, does anyone know why MS doesn't have a true .NET web browser control
available? Seems there's plenty of interest by searching nuermous websites
and newsgroups. Being forced to use COM interop just for displaying/printing
some data seems like a waste.
TIA,