streaming non-HTML content into AxShDocVw

arnorichard

New member
Joined
Feb 16, 2004
Messages
1
all,

Theres a lot of information in all forums about the basic usage of AxShWebVw, using the Navigate() method, and some on how to stream content directly into the control using the IPersistStreamInit interface.

The 1st method (navigate) easily allows you to navigate to any type of document recognised by IE, including Office documents and PDF files.

The 2nd method (stream) not-that-easily-but-still allows you to generate content on the fly and stream that into the AxSHDocVw.AxWebBrowser.Document property.... but so far, Ive only been able to stream TEXT, HTML and JPEG documents.

... and of course, my task is to generate XLS and PDF files (and more formats in the future!) on the fly, and display them using their native format... which is why I went the AxShDocVw route, so that I can leave IEs control handle the formatting. But all I get is a display as text of all bytes of my data inside the control, not my generated document.
Of course, I could write the document to disk and use the 1st method, but I cant for security reasons (documents have to be in memory only, not editable, not printable, not savable, no copy & paste....)

Any help will be most than warmly welcome!!!

Arnaud Richard
 
IPersistStreamInit

Hi, arnorichard!

You wrote:

The 2nd method (stream) not-that-easily-but-still allows you to generate content on the fly and stream that into the AxSHDocVw.AxWebBrowser.Document property.... but so far, Ive only been able to stream TEXT, HTML and JPEG documents.

Would You tell me, Please, how can I Load HTML using IPersistStreamInit into the MSHTML parser? using .NETs C#, of cource!
 
Last edited by a moderator:
Back
Top