Try this instead:

<cfheader name="Content-Disposition" value="attachment;
filename=agentDaily.xls">



On Wed, Jan 26, 2011 at 8:59 PM, Monique Boea <[email protected]> wrote:

>
> Hello All.
>
> I am reading a text file and saving it in excel.
>
> I am using the following code:
>
>  <cfoutput>
> <cfset filePath = #ExpandPath( "\")#>
> <cfheader name="Content-Disposition" value="filename=agentDaily.xls">
>
> <cfcontent type="application/vnd.ms-excel"
> file="#filePath#\user\dailyreports\agentDaily.txt" deletefile="no">
> </cfoutput>
>
> My problem is I want to save it to a directory and the files keep opening
> in the browser.
>
> How can I save it to directory?
>
> This link doesn't help:
> http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_11.html
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341479
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to