Date:  02/09/2010 11:52:01 AM Msg ID:  004119
From:  FoxWeb Support Thread:  004118
Subject:  Re: Adobe Acrobat Email Attachment File Name
 Yes there is. You will need to send a Content-Disposition HTTP header:
Response.AddHeader("Content-Disposition", "inline; filename=" + FileName)
Note that instead of "inline" you can specify "attachment". Inline instructs the browser to display the PDF file inside the browser window, while attachment allows you to view the document in a separate Adobe Acrobat window.
For a detailed example please refer to the PDF2.fwx sample script that comes with FoxWeb.
FoxWeb Support Team email
Sent by Dave Martin on 02/09/2010 11:35:41 AM:
I have been successfully outputting reports to various browsers via PDF files for some time.  When utilizing IE8 and Adobe Acrobat, if I click the email button from within the browser, Acrobat gives the PDF attachement a file name something like the following:

"script file name".fwx.pdf

Where the script file name should be replaced with the name of the Foxweb script which was generated the PDF file.

Is there a way to add some header information to the PDF file such that it will have the correct file name?


Dave Martin