I have the following code that works fine <cfheader name="Content-Disposition" value="inline; filename=acmesalesQ1.xls" /> <cfcontent type="application/vnd.msexcel" reset="true" />
<cfoutput> <table border="2"> <tr><td>Month</td><td>Quantity</td><td>$ Sales</td></tr> <tr><td>January</td><td>80</td><td >$245</td></tr> <tr><td>February</td><td>100</td><td>$699</td></tr> <tr><td>March</td><td>230</td><td >$2036</td></tr> <tr><td>Total</td><td>=Sum(B2..B4)</td><td>=Sum(C2..C4)</td></tr> </table> </cfoutput> But inside a webskin I am getting a zero kb file, or errros from excel was 4 or 5 css files are missing webskins/stockbroker/displayPageTypeExcel.cfm <cfset URL.tracewebskins = 0 /> <cfset REQUEST.fc.BSHOWTRAY = false /> <!--- @@displayname: PSL StockBroker [displayPageTypeExcel.cfm] ---> <!--- @@description: display Document calls from API ---> <!--- @@fuAlias: excel ---> <cfheader name="Content-Disposition" value="attachment; filename=account-ARGUMENTS.stParam.accountNumber.xls" /> <cfcontent type="application/vnd.ms-excel; charset=UTF-8" reset="true" /> <cfoutput> <table border="2"> <tr><td>Month</td><td>Quantity</td><td>$ Sales</td></tr> <tr><td>January</td><td>80</td><td >$245</td></tr> <tr><td>February</td><td>100</td><td>$699</td></tr> <tr><td>March</td><td>230</td><td >$2036</td></tr> <tr><td>Total</td><td>=Sum(B2..B4)</td><td>=Sum(C2..C4)</td></tr> </table> </cfoutput> -- AJ Mercer http://webonix.net http://twitter.com/webonix -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
