Send PDF File to client

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.
 
O

Olivier Matrot

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top