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.
On 8/1/07, Elena Aminova <[EMAIL PROTECTED]> wrote:
>
> 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.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285122
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4