This is what I am using....

<cfheader name="Content-Disposition" value="inline; filename=#pdfToCreate#">
<cfheader name="Expires" value="#Now()#">
<cfcontent type="application/pdf"
file="#variables.vcSystemGeneratedAppPath##pdfToCreate#" deletefile="yes">



-----Original Message-----
From: Aldon Moore [mailto:[EMAIL PROTECTED] 
Sent: 02 November 2005 16:54
To: CF-Talk
Subject: Force PDF Download

Hello People!

I need to force download a pdf file but my code is trying to download the
page that contains the script!

<cfheader name="Content-disposition" value="attachment;filename=ebook.pdf">
<cfcontent type="application/pdf"
file="d:/webspace/mysite.com/wwwroot/ebook/ebook.pdf">

but this code fails.

Is there a better solution??

Aldon




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222915
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to