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

downloading acrobat PDF

Status
Not open for further replies.

barryp

Programmer
Jan 30, 2002
48
0
0
GB
Hi
I have an ASP script which is given a filename as a parameter & must then download a page containing the PDF file

So, I have

Response.ContentType = "application/pdf"

FilePath = Request.QueryString("docPath")
FileName = Right(FilePath,Len(FilePath)-InstrRev(FilePath,"\"))

Response.AddHeader "Content-Disposition", "filename=" & FileName

I then use Response.BinaryWrite to dump out the PDF

I'm getting funny results.
IE5 on windows struggles, but does the jib
IE4 on Mac just dumps the PDF as a file on my desktop (using the name of my ASP script!)

Regards

Barry


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top