Here is the code i have on a page...
<%
Response.AddHeader "Content-Disposition", "attachment; filename=PressRelease.pdf"
Response.ContentType = "application/pdf"
Response.Write("I am here")
%>
when i try to open it, it opens Acrobat Reader but the Acrobat Reader gives me an error in the form of a message box with this message "Acrobat could not open 'PressRelease[1].pdf' because it is either not a supported file type or because the file has been corrupted (for example, it was sent as an email attachment and wasn't correctly decoded)."
Any ideas?
:) SD
Start Free Trial