Dave Merrill
05/15/2024, 1:55 PMaliaspooryorik
Chris
05/15/2024, 2:04 PMaliaspooryorik
aliaspooryorik
Try a single quote ' before each value
aliaspooryorik
aliaspooryorik
aliaspooryorik
aliaspooryorik
Chris
05/15/2024, 2:09 PMDave Merrill
05/15/2024, 2:47 PMaliaspooryorik
aliaspooryorik
Dave Merrill
05/15/2024, 2:50 PMDave Merrill
05/15/2024, 2:50 PMaliaspooryorik
aliaspooryorik
addRow() and then pass in an array which will just populate the cells of that row. The array can contain any simple value you like.aliaspooryorik
Dave Merrill
05/15/2024, 2:53 PMaliaspooryorik
cfspreadsheet tag, you need to use https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-s/spreadsheetsetcellvalue.htmlDave Merrill
05/15/2024, 3:06 PMaliaspooryorik
myspreadsheet.addRow(...) insteadaliaspooryorik
Dave Merrill
05/15/2024, 4:08 PMcfsimplicity
05/16/2024, 10:51 AMspreadsheet = New spreadsheet.Spreadsheet() //instantiate the library
newline = Chr( 13 ) & Chr( 10 ) //Lucee has newline() but ACF doesn't
csv = 'insuranceNumber#newline#123456789012' // use your generated CSV here
workbook = spreadsheet.workbookFromCsv( csv=csv, firstRowIsHeader=true, xmlFormat=true )
spreadsheet
.formatColumn( workbook, { dataFormat: "0" }, 1 ) // try and stop Excel using scientific notation
.download( workbook, "csvToSpreadsheetTest" )cfsimplicity
05/16/2024, 10:55 AMspreadsheet.newChainable()
.fromCsv( csv=csv, firstRowIsHeader=true, xmlFormat=true )
.formatColumn( { dataFormat: "0" }, 1 )
.download( "csvToSpreadsheetTest" )Dave Merrill
05/16/2024, 11:52 AM