This is how I am doing it
Got it from farcry's download.cfm

<cfheader name='Content-Disposition'
VALUE='attachment;filename=#saveAsName#' />
<cfheader name="cache-control" value="" />
<cfheader name="pragma" value="" />

<cftry>
    <cfcontent type="application/pdf" file="#pdfName#" deletefile="yes"
reset="yes" />
    <cfcatch><!--- prevent unnecessary log entries when user cancels
download whilst it is in progress ---></cfcatch>
</cftry>

On 2/15/07, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
> Is there a better technique that will allow one to suggest the file name
> to a client when creating a pdf document with the <cfdocument...> tag?  Can
> something be done with <cfheader...> or <cfcontent...> as one does when
> delivering other type of content.
>
> As of now, I use the 'filename' to write the PDF to the file system with
> the desired filename. I then use a <cflocation...> tag to relocate to the
> recently created PDF file with the desired filename.
>
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 |   |
> ---------  Binary Soduko
> |   |   |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice:  This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269870
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to