I'm using CFScript to create and save a spreadsheet. However, SpreadsheetWrite
isn't producing a file.
<cfscript>
...
...
...
spreadsheetWrite(sObj, yourSheet, "yes");
</cfscript>
It does not produce an error, but there's no file either. If I remove spreadsheetwrite from the cfscript tag and use:
<cfspreadsheet action = "write" fileName = "#yourSheet#" name = "sObj">
... I get the file just fine.
Was this not the intended use of SpreadsheetWrite()
? Also, is it possible to produce a spreadsheet directly to the browser like cfdocument
, or do I have to save the file first?