| Subject: | Re: Writing a CSV file |
|---|---|
| From: | "tclaremont" |
| Date: | Tue, 15 Apr 2008 17:38:33 +0000 UTC |
| Newsgroups: | macromedia.coldfusion.getting_started |
Here is the way I do it... <cfquery name="GetAll" datasource="#DSN#"> SELECT Field1, Field2, Field3, Field4 FROM tblName </cfquery> <cfheader name="Content-Disposition" value="filename=ReportName.csv"> <CFCONTENT reset="yes" TYPE="application/msexcel"> <CFOUTPUT QUERY="GetAll"> "#GetAll.Field1#","#GetAll.Field2#","#GetAll.Field3#","#GetAll.Field4#" </cfoutput> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: User updated database help, dimagestudios |
|---|---|
| Next by Date: | Re: Writing a CSV file, ACS LLC |
| Previous by Thread: | Re: Writing a CSV file, ACS LLC |
| Next by Thread: | Re: Writing a CSV file, Ian Skinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |