A
Arno richard
all
There's 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, I've 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 IE's 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 can't for security reasons (documents have to be in memory only, not editable, not printable, not savable, no copy & paste....)
Now I wonder if that's possible at all to stream non-HTML content into this control... Any help will be most than warmly welcome!!
Arnaud Richar
There's 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, I've 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 IE's 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 can't for security reasons (documents have to be in memory only, not editable, not printable, not savable, no copy & paste....)
Now I wonder if that's possible at all to stream non-HTML content into this control... Any help will be most than warmly welcome!!
Arnaud Richar