Previous Thread:   DataGridView not "painting" all cells

2/27/2006 9:33:17 AM    viewing mhtml page in webbrowser control
Can an mhtml page be viewed using the System.Windows.Forms.WebBrowser control?  
  
When I use the Navigate method it works but if I try to use the DocumentStream property it  
  
doesn't render any of the images.  The source is a web page saved in IE6 using SaveAs mht  
  
I want to be able to store an mht file in a database then render from a memorystream.  
  
I'd prefer to use inline base64 encoded images instead of mhtml but unfortunately IE  
  
seems to be the only browser that doesn't support RFC 2397.



2/28/2006 6:55:34 AM    RE: viewing mhtml page in webbrowser control
Hi Darren ,  
  
Thanks for your post.  
  
The easiest way to do would be to save the mhtml content to a temp file and  
  
then call the Navigate method of the webbrowser control and point to the  
  
appropriate temp file.  
  
Also you could stream the content directly into MSHTML, but it will not  
  
render properly unless you get the IPersistStream interface and pass an  
  
instance of an implementation of IStream (not the .NET version, but the COM  
  
version). This would be hard to implement though, but it should be  
  
possible.  
  
So, I strongly recommend you the first way. Hope this helps!  
  
Best regards,  
  
Jeffrey Tan  
  
Microsoft Online Partner Support  
  
Get Secure! - www.microsoft.com/security  
  
This posting is provided "as is" with no warranties and confers no rights.

3/1/2006 8:48:55 AM    Re: viewing mhtml page in webbrowser control
I found out that the web control for .net 2.0 on the Pocket PC doesn't support mshtml  
  
so I'm SOL.  
  
Jeffrey Tan[MSFT] wrote:

3/2/2006 6:07:16 AM    Re: viewing mhtml page in webbrowser control
Hi Darren ,  
  
Thanks for your feedback.  
  
I do not think I understand your reply very well. It seems our original  
  
post has nothing to do with PPC or .Net2.0 Web Control. Can you give some  
  
more detailed information regarding your concern?  
  
Thanks  
  
Best regards,  
  
Jeffrey Tan  
  
Microsoft Online Partner Support  
  
Get Secure! - www.microsoft.com/security  
  
This posting is provided "as is" with no warranties and confers no rights.

3/9/2006 10:18:02 AM    Re: viewing mhtml page in webbrowser control
From my original post:  
  
Can an mhtml page be viewed using the System.Windows.Forms.WebBrowser control?  
  
Since this control is available on the PPC I thought it might have the same functionality  
  
I need to be able to display complete web pages with images read from a database.  
  
I was hoping to use inline base64 image data but IE doesn't support it (most other browsers do)  
  
The only other option I seemed to have is to use an HTML archive file but the PPC browser doesn't support them.  
  
I need a Tablet PC / PPC solution based on .Net 2.0  
  
Jeffrey Tan[MSFT] wrote:

3/13/2006 2:22:18 AM    Re: viewing mhtml page in webbrowser control
Hi Darren ,  
  
PPC issue is not suitable for this newsgroup. This newsgroup mainly focuses  
  
on .Net winform PC related issues, not compact framework specific. I  
  
suggest you post this question in  
  
microsoft.public.dotnet.framework.compactframework newsgroup. You will get  
  
more useful and professional help there.  
  
Thanks for your understanding.  
  
Best regards,  
  
Jeffrey Tan  
  
Microsoft Online Partner Support  
  
Get Secure! - www.microsoft.com/security  
  
This posting is provided "as is" with no warranties and confers no rights.