Skip to main content
Inspiring
April 24, 2007
Question

Writing a CFHEADER in a CSV file

  • April 24, 2007
  • 1 reply
  • 521 views
Hi,
How do I insert the following header into a CSV file to force the user to download the page:
<cfheader name="Content-Disposition" value="filename=myPage.csv">
<cfcontent type="text/csv">

Attached is my code:
This topic has been closed for replies.

1 reply

Inspiring
April 24, 2007
try putting <cfoutput>#csvdata#</cfoutput>

right after your cfcontent tag.