Need help with WebBrower Control

R

Roy

I have vb.net application that needs to read a string object whose data is formated into PDF, Word and HTML. I've been successful reading the HTML stream into the WebBrowser control.

How are PDF and Word files read (or streamed) into the WebBrowser control or, better yet, how do I cause the WebBrowser control to launch the correct plugin?

Note: There are no files to open or navigate to. The only input is from a string object.

Thanks!
 
W

Wardeaux

Roy,
I've not streamed from a string, I've only streamed PDF using
Response.BinaryWrite(mybyte()) but I believe the key is to set the content
type using Response.ContentType = "application/pdf" for PDF file and
Response.ContentType = "application/doc" for the Word file. I believe that
will launch the desired app/plugin.

Hope this helps!
wardeaux

Roy said:
I have vb.net application that needs to read a string object whose data is
formated into PDF, Word and HTML. I've been successful reading the HTML
stream into the WebBrowser control.
How are PDF and Word files read (or streamed) into the WebBrowser control
or, better yet, how do I cause the WebBrowser control to launch the correct
plugin?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top