Question
cfcontent to Excel, displays old file in IE
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?
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?