From: biene22 on
Hello,

I want to export a dynamic query result via button to excel.
I have a search template from where the users want to export the query results
by clicking a button to an excel file.
Is it possible?:confused;

From: GArlington on
On Apr 4, 6:59 am, "biene22" <webforumsu...(a)macromedia.com> wrote:
> Hello,
>
> I want to export a dynamic query result via button to excel.
> I have a search template from where the users want to export the query results
> by clicking a button to an excel file.
> Is it possible?:confused;

Just create a csv format:
1st row query column headers
then 1 row per record.
Do NOT forget to insert line breaks after each row.
From: prasanth25 on
Hi,
Try adding the header

<CFHEADER NAME="Content-Disposition" VALUE="attachment;
FILENAME=resultFiles.xls">
<CFCONTENT TYPE="application/vnd.msexcel">

to the file and try. This will open the output file as an Excel document.

- Prasanth

From: Dan Bracuk on
Make the query a session variable. When the user clicks the button, take them to another page where you can use cfheader and cfcontent to export to excel.
From: "JR "Bob" Dobbs" on
Here is a list of options.
http://www.carehart.org/resourcelists/tools_to_consider/index.cfm#excel