Send PDF File to client

  • Thread starter Thread starter Olivier Matrot
  • Start date Start date
O

Olivier Matrot

Hello,
I'm successfully sending a PDF file stored in a database to the client.
My problem is that in Acrobat, when you choose to save a copy, the default
file name is the aspx file name.
Note that I'm not using :
Response.AppendHeader("Content-Disposition", "attachment;filename=a.pdf");
Because I want the browser to open the file by default.

TIA.
 
I don't think so.
As I said, the PDF file is correctly displayed on the client.

If I use the line :

Response.AppendHeader("Content-Disposition", "attachment;filename=a.pdf");

then, the file name is correct in Acrobat's 'Save a copy' dialog box, but
the user is asked to choose between opening or saving the file on disk.
 
Back
Top