Advertisement

12.11.2004 at 04:21PM PST, ID: 21239281
[x]
Attachment Details

Response.ContentType = "application/pdf" Error

Asked by sciber_dude in Active Server Pages (ASP)

Tags: pdf

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?
:) SDStart Free Trial
[+][-]12.11.2004 at 05:09PM PST, ID: 12802059

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: pdf
Sign Up Now!
Solution Provided By: AgentSmith007
Participating Experts: 5
Solution Grade: A
 
 
[+][-]12.12.2004 at 08:24AM PST, ID: 12804211

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.12.2004 at 09:14AM PST, ID: 12804335

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.12.2004 at 09:14AM PST, ID: 12804336

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.12.2004 at 10:19AM PST, ID: 12804543

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.12.2004 at 11:24AM PST, ID: 12804807

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.13.2004 at 09:49AM PST, ID: 12811409

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.14.2004 at 01:39PM PST, ID: 12824415

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.23.2005 at 06:47PM PDT, ID: 14065157

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.23.2005 at 06:59PM PDT, ID: 14065201

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32