Thanks for the response. I gave your suggestion a shot and it didn't seem to make a difference. Here is the code:
lccucstomer = REQUEST.QUERYSTRING("customer")
lccase_no = REQUEST.QUERYSTRING("case_no")
Set CLASSLIB to "Z:\G Drive\Projects\Help Desk\Class Libraries\Help Desk.vcx" additive
orpt_customerlist = createobject("rpt_ticket")
orpt_customerlist.nDirection = 7
orpt_customerlist.lccompany = lccucstomer
orpt_customerlist.lccase_no = lccase_no
Response.Buffer = .T.
Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName)
Response.ContentType = ContentType
The code creates a file on the server named: Ticket Report.pdf
When I go to save the file or email it from within Adobe Acrobat, it always include the script name in the file name.
Also, I am running version 3.51 which did not come with the PDF examples.
Any further thoughts????
Thanks very much,
Sent by FoxWeb Support on 02/09/2010 11:52:01 AM:
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
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?