streaming non-HTML content into AxShDocVw
From: Arno richard (msdn.newsgroups_at_workingbydesign.com)
Date: 02/16/04
- Next message: Thomas Johansen: "InteropServices and Dll function entrypoint."
- Previous message: backspin_at_sandwedge.com: "Is interop the right way to go ???"
- Next in thread: Arno richard: "RE: streaming non-HTML content into AxShDocVw"
- Reply: Arno richard: "RE: streaming non-HTML content into AxShDocVw"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 16 Feb 2004 05:21:06 -0800
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 Richard
- Next message: Thomas Johansen: "InteropServices and Dll function entrypoint."
- Previous message: backspin_at_sandwedge.com: "Is interop the right way to go ???"
- Next in thread: Arno richard: "RE: streaming non-HTML content into AxShDocVw"
- Reply: Arno richard: "RE: streaming non-HTML content into AxShDocVw"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|