Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying a pdf file in .net page

Status
Not open for further replies.

Sanjeet1

Programmer
Sep 4, 2003
26
US
I have a default page and image page. The default page calls a web service, passs three parameers are retreives the URL for the pdf documnt sitting in my images folder.

Once I get the URL I need to display the pdfdocument on the images page. Any idea how this is done?

How would I do that in the code behind vb file? What componnt or line of code can I use. I am retreiving th URL from a databas s i vae to set it each time the page loads it is dynamic not static.
 
You can use the HTML "embed" tag. Or you can retrieve the document and stream it, by setting the proper mime-type and using the Response object.

Research "Response.ContentType" (set it to "application/pdf"), as well as the other Response methods & propeties, such as OutputStream.Write.



Thomas D. Greer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top