Whatever message this page gives is out now! Go check it out!
spreadsheetRemovePrintGridlines(spreadSheetObject)Name | Required | Type | Description |
spreadSheetObject | Yes | ExcelInfo | The Excel spreadsheet object from which you’ll remove the gridlines. |
| sheetName | No | String | The sheet in which you’ll remove the gridlines. If you do not specify a sheetName, the function adds gridlines to the active sheet. |
<cfquery name="art" datasource="cfartgallery">
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "art-gridline.xls";
// create a spreadsheet object
theSheet=spreadsheetNew("SampleData")
// add second sheet
spreadSheetCreateSheet(theSheet, "Sheet2")
// add rows from the table to the spreadsheet
spreadsheetAddRows(theSheet,art)
// add print gridlines
try{
spreadsheetAddPrintGridlines(theSheet,"Sheet2")
}
catch (any e){
writeOutput(e.message)
}
// remove print gridlines
spreadsheetRemovePrintGridlines(theSheet)
// write spreadsheet
spreadSheetWrite(theSheet,theFile,"yes")
</cfscript>