Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: CF Reporting using objects

$
0
0

Hi jolakammu,

 

You may try something like the below code:-

 

<cfquery name = "query_name" dataSource = "db_name">

     select * from table_name

</cfquery>

<cfspreadsheet

                                             action = "write"

                                             filename="AgentReport.xls"

                                             query="query_name"

                                             overwrite="true">

<cfform>

      <input type="button" value="Report Download" onClick="window.location.href='AgentReport.xls'">

</cfform>

 

Regards,

Anit Kumar


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>