Skip to main content
Participant
August 25, 2006
Question

cfcontent to Excel, displays old file in IE

  • August 25, 2006
  • 1 reply
  • 198 views
I have be fighting IE this week.

I have a system that will produce several Excel format "reports". At the beginning of the .cfm file I have the following code:

<CFheader NAME="Content-Disposition" value="attachment;filename=Report.xls">
<cfcontent type="application/vnd.msexcel">

When I run the page in IE, the first time everything is wonderful. The second time I run the page with differnet parameters IE gives me the first page again. If I run the pages on FireFox; I get the correct page I want.

I have tried using <cffile> writing all the report data to a file, then having a link to the newly created file; I get the same results. With IE first time is great, second time I get the first report. Even if I do a <cffile delete> before I start my cffile write.

What can I do to get IE to release the old page?
    This topic has been closed for replies.

    1 reply

    Inspiring
    August 25, 2006
    IE was acting wierd for me too with cfcontent. . .
    surprisingly enough, I got my error message to go away by linking to the page, instead of using a bookmark or typing in the address. Probably wont fix your problem, but might be worth a try anyway, if you havent already.
    mike-