|
?Yet another option is to save to an HTTP stream via the SaveHttp method. This method enables your Web application to send a PDF document directly to the client browser without creating a temporary copy on the server's hard drive for better performance and security.
The SaveHttp method takes two arguments, a value for the Content-Disposition header, and optionally a value for the Content-Type header. The latter value is "application/pdf" by default.
The Content-Disposition header contains the name of the PDF file as displayed to the user in the File Save As dialog box. The format for this header is:
"filename=myfile.pdf"
or
"attachment;filename=myfile.pdf"
The second version makes a browser prompt the user to save the file to disk instead of opening it in-place.
SaveHttp can only be used in an ASP/ASP.NET environment as it calls the Response.BinaryWrite method internally."
Joe