Yes,

 

Could possibly also do it with IIS Custom errors, but I don’t see the issue with saving the file.

 

Depending on the number of reports, you could just have lots of ReportName.cfm where ReportName matches the filename your looking for.

Regards
Dale Fraser

http://dale.fraser.id.au


 


From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of AJ Mercer
Sent: Thursday, 2 November 2006 17:29 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: cfdocument - client file name

 

so I am guessing that this is to be used in conjunction with getting cfdocument to save the PDF to a file?

On 11/2/06, Dale Fraser < [EMAIL PROTECTED]> wrote:

Yes,

 

<cfheader name="Content-Type" value="pdf" />

<cfheader name="Content-Disposition" value="attachment; filename=filename.pdf" />

<cfcontent type="application/pdf" file="pathto/filename.pdf" deletefile="true" />

 

Regards
Dale Fraser

http://dale.fraser.id.au


 


From: cfaussie@googlegroups.com [mailto: cfaussie@googlegroups.com] On Behalf Of AJ Mercer
Sent: Thursday, 2 November 2006 14:38 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] cfdocument - client file name

 

Is it possible to give a pdf created by cfdocument a filename that will be used by the client when they click save or email as attachment?

At the moment, the save option comes up the the ColdFusionscript name with .cfm replaced with .pdf.
The email as attachment option just puts it the cf script name - with the .cfm extension, so for me it DreamWeaver tries to open it.

I would rather not go with the option of using cfdocument to save the pdf on the server then push that out using
<cfheader name="Content-Disposition" value="inline; filename=Listing #listing_no#.ext">

I am now messing around with the cfheader in the cfdocument, but so far with out any luck.



 

 




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to