Elena,
I just use cfheader like this.
<cfif #excel# eq "yes">
<cfheader name="content-disposition"
value="attachment;filename=report_name.xls">
<cfcontent type="application/msexcel">
<cfelse>
<!--- your report goes here --->
</cfif>
I have no idea about pdf files.
>
> What is the best way to generate Excel and PDF formatted reports in CF7?
> I need to generate a report that is written in ColdFusion and give the
> user an option to Export the report to Excel and PDF and hopefully preserve
> the look of the report (adding headers and footer will work), but how?
> Please advise.
>
> Thanks all in advance,
> Elena.
>
>