Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > System.Windows.Forms.WebBrowser and Java and Blank Pages

Reply
Thread Tools

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

 
 
Jon Ebersole
Guest
Posts: n/a
 
      02-26-2007
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
 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      02-27-2007
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.


 
Reply With Quote
 
 
 
 
ilan dov
Guest
Posts: n/a
 
      08-23-2007
Hi Jon,
I hope you managed to solve your problem. Maybe you can help me with mine...

I am trying to write a class library that inserts page breaks in an existing
html by loading it into a System.Windows.Forms.WebBrowser and then using
mshtml to invesigate page's content. It works fine in a Windows Form but in
a class library I don't receive the DocumentCompleted event or the Navigated
event. After calling the Navigate method, the wb.Document property is not
null, but the wb.Document.Body property is. From what you wrote it seems
that you receive these events in a class library. Is there something special
that needs to be done when using System.Windows.Forms.WebBrowser in a class
library?

Thanks
Dov
 
Reply With Quote
 
ilan dov
Guest
Posts: n/a
 
      08-27-2007
Hi Steven ,
I noticed that Jon is using System.Windows.Forms.WebBrowser in a class
library.
I am trying to write a class library that inserts page breaks in an existing
html by loading it into a System.Windows.Forms.WebBrowser and then using
mshtml to invesigate page's content. It works fine in a Windows Form but in
a class library I don't receive the DocumentCompleted event or the Navigated
event. After calling the Navigate method, the wb.Document property is not
null, but the wb.Document.Body property is. From what Jon wrote it seems
that he managed to receive these events in a class library. Is there
something special that needs to be done when using System.Windows.Forms.
WebBrowser in a class library?

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
blank CD-R and blank DVD-R not recognized by Vista 64 Ultimate =?Utf-8?B?R3JlZyBLaXJrcGF0cmljaw==?= Windows 64bit 13 11-07-2007 12:23 PM
blank bar in ff 1.5, and pages never finish loading JohnE Firefox 2 12-24-2005 11:20 AM
asp pages randomly showing as blank white pages Alex Rybalov ASP General 2 05-27-2004 09:39 PM
Help needed: blank space in web pages Minna Firefox 2 09-25-2003 06:54 AM



Advertisments