Home All Groups Group Topic Archive Search About

System.Windows.Forms.WebBrowser and Java and Blank Pages

Author
26 Feb 2007 10:39 PM
Jon Ebersole
I am writing a class library that takes screen shots of pages of websites.  I
am using System.Windows.Forms.WebBrowser to navigate to the web page.  I call
the Navigate method, and then respond to the DocCompleted event handler.  I
use the DrawToBitmap method to create a bitmap image and display it to the
user or save it to a file.

When I navigate to a website that has a java control on it, it always
returns a blank page.  This has to be a bug in the WebBrowser control.  Does
anyone have a fix or a workaround for this problem?

--
Jon Ebersole
Microsoft Certified Solution Developer

Author
27 Feb 2007 5:29 AM
Steven Cheng[MSFT]
Hello Jon,

From your description, you're developing a windows form application which
use WebBrowser control to programmatically navigate some internet pages and
capture the page screenshot. However, you found some pages that contains
java control(Applet? ) will display as blank page in webbrowser, correct?

Regarding on those pages which contain java controls, can you correctly
view them if you use standard webbrowser(IE or firefox) to visit them?
Also, since java control(applet) rely on JVM installed on the client
machine, have you installed the latest version of the java JVM to see
whether it works?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.