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>
Thanks but this is for downloading a PDF file that exists on the server. I was
asking about using the <cfdocument format="pdf"...> tag, which generates the
PDF on the fly. But the same <cfheader...> tag works for this as well.
--------------
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:269891
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4