• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

creating excel with cfcontent and MX

New Here ,
Apr 03, 2007 Apr 03, 2007

Copy link to clipboard

Copied

I have some code that I have been developing on a server running CF version 5.0. I realized that we have migrated our production servers to MX and moved my code to the MX dev box. Once I did, the code I have written to create an excel file is not working the same way. With CFF 5, I would see the file show up like a spreadsheet and you could save as an xls file. After only moving the code to MX, it won't let me open the file in the browser. Any ideas what is going wrong
TOPICS
Advanced techniques

Views

217

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Apr 03, 2007 Apr 03, 2007
You need to use the following in CFMX:

<cfheader name="Content-Disposition" value="inline;filename=#name#">
<cfcontent type="application/vnd.ms-excel"><cfoutput>#sExcelContent#</cfoutput>

Notice the <cfheader>

Votes

Translate

Translate
Advocate ,
Apr 03, 2007 Apr 03, 2007

Copy link to clipboard

Copied

LATEST
You need to use the following in CFMX:

<cfheader name="Content-Disposition" value="inline;filename=#name#">
<cfcontent type="application/vnd.ms-excel"><cfoutput>#sExcelContent#</cfoutput>

Notice the <cfheader>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation