I believe this is the best code to use for forcing a download

<cfheader name="Content-type" value="application/octet-stream">
<cfheader name="Content-Disposition" value="attachment; filename=#url.fileName#">
<cfheader name="Content-transfer-encoding" value="binary">
<cfheader name="Content-length" value="1">
<cfcontent type="none" file="#variables.filePath#">

I am assuming you want the file to download instead of opening up in the browser?

Taco Fleur
07 3535 5072
Blog: http://www.tacofleur.com/index/blog/
Methodology: http://www.tacofleur.com/index/methodology/
Tell me and I will forget
Show me and I will remember
Teach me and I will learn


-----Original Message-----
From: KNOTT, Brian [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 February 2004 8:38 AM
To: CFAussie Mailing List
Subject: [cfaussie] Exporting to Excel


Has anyone got an example of exporting a page to excel.  I'm using the
following code but I get a windows error saving that it could not downland
the file because it could not open the Internet site.

If I change the type to text/plain it opens a new IE window and displays the
page.  If I change the type to Application/msword it opens a word document
and dumps the HTML.  

Any ideas why Excel will not work.

<cfheader name="Content-Disposition" value="inline; filename=data.XLS">
<cfcontent type="application/msexcel">


Brian Knott





-----------------------------------------------------------------------------------

The contents of this message are the views of the Author and do not necessarily 
reflect the views of SUNCORP METWAY LTD  ABN 66 010 831 722. 

The content of this e-mail, including attachments is a confidential communication 
between the Suncorp Metway Group and the intended addressee. Any unauthorised use of 
the contents is expressly prohibited. If you have received this e-mail in error please 
contact the sender immediately and then delete the message and any attachment(s).

http://www.suncorp.com.au


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to