I'm running Coldfusion 10 on Microsoft Windows Server 2008 R2 Data Center – SP 1 with a SQL Server 2012 datasource.
I have a cfspreadsheet tag on a page that goes like this:
<cfinvoke component="assetdata" method="getAllNames" searchString ="#url.searchoption#" returnVariable="result">
<cfspreadsheet
action = "write"
query="result"
filename="#filename#"
overwrite="true">
<div>Your spreadsheet is ready. You may download it <a href="search_results.xls">here</a>.</div</div>
What I'd like to do is in addition to outputting the query onto a spreadsheet is add query results like these to the bottom of it:
Total number of computers in use: 110
Total number of computers to be replaced: 62
Total number of computers that have been replaced: 8
which each have their own select statement on the page drawing the info. Can this be done with cfspreadsheet? Or am I locked into only using one query per sheet?