earwig75
asked on
Exporting to Excel - security warning
I am using the method below to export the contents of a cold fusion page to excel. When I try to open the file my browser gives me the following message (below also). Is there a way to avoid having this message displayed? Thanks.
Message
The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corruupted and is from a trusted source before opening the file. Do you want to open the file now?
Method
<CFHEADER NAME="Content-Disposition" VALUE="attachment;filename =filename. xls">
<cfcontent type="application/vnd.ms-e xcel">
Message
The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corruupted and is from a trusted source before opening the file. Do you want to open the file now?
Method
<CFHEADER NAME="Content-Disposition"
<cfcontent type="application/vnd.ms-e
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.