Re: PDF File help!

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



And the pdf file on the machine (or directory) is named "myLocalFile.pdf"
Looks like you are missing the full path?

"Ami" <amutha55@xxxxxxxxx> wrote in message
news:1158113141.110494.40020@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
No I have Acrobat Reader in the machine and can open other PDF Files.
Thank you.
Austin Phillips wrote:
Ami;

Sounds like you do not have Acrobat Adobe Reader on the machine.

Are you trying to view the document in the browser?

HTH,
Austin

"Ami" <amutha55@xxxxxxxxx> wrote in message
news:1158107759.899162.158720@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All
I am using this code to open a PDF file and it works fine in Windows
Server 2003, but not
working in Windows XP and 2000. The Download box has Open, Save and
Cancel option, but
when I click Open option, it is not opening the file, instead, it is
asking us to select the Program from the list to open the file and
sometimes giving the error, "There is an error opening this file"
error. This is urgent and any help is highly appreciated. Thank you.

Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", "attachment;
filename=myfile.pdf");
Response.WriteFile("myLocalFile.pdf");
Response.End();




.



Relevant Pages

  • Re: PDF File help!
    ... Are you trying to view the document in the browser? ... I am using this code to open a PDF file and it works fine in Windows ... "There is an error opening this file" ...
    (microsoft.public.dotnet.general)
  • PDF File help!
    ... I am using this code to open a PDF file and it works fine in Windows ... Server 2003, but not ... "There is an error opening this file" ...
    (microsoft.public.dotnet.general)
  • Re: autorun problem on a CD
    ... Windows XP Shell/User ... I have changed my autorun.inf file to read shellexecute=filename.pdf ... > Ramesh, Microsoft MVP ... I have been>>> trying to get my autorun.inf and autorun.exe file to run the PDF file>>> and have not been successful. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: autorun problem on a CD
    ... Ramesh, Microsoft MVP ... Windows 2000 Group Policy Registry Table: ... > Sivilla wrote: ... >> make a CD-ROM with will autorun and boot to a PDF file. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Project 2007 - print option on file right click does not work
    ... the printer you're using, and thus, printing problems are generally not the ... mpp file needs to load Project first in which it can open. ... can print the pdf file as you would expect. ... file in Windows explorer and select print. ...
    (microsoft.public.project)