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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening A PDF file in asp

Status
Not open for further replies.

FontanaS

Programmer
Joined
May 1, 2001
Messages
357
Location
US
I have a pdf file that is generated in the web page.
I want the pdf file to automatically open after it is saved (also done automatically through the code).

How do i open a pdf file automatically?

i know the file name and the location -

C:\simpletest.pdf

thanks!
 
The easiest thing would be to redirect to the URL of the file.

Alternatively you could have an asp page where you clear out the response, set the content type, and then stream the binary into the response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top