Whatever message this page gives is out now! Go check it out!
spreadsheetGetCellFormat(spreadsheetObject,row,column)Name | Required | Type | Description |
spreadSheetObject | Yes | ExcelInfo | The Excel spreadsheet object for which to get the cell format. |
row | Yes | Integer | The row number of the cell. |
column | Yes | Integer | The column number of the cell. |
<cfquery name="art" datasource="cfartgallery">
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "art.xls";
// create a spreadsheet object
theSheet=spreadsheetNew("SampleData")
// add rows from query
spreadsheetAddRows(theSheet,art)
// writeOutput(theFile)
// Define the structure for formatting a cell
myFormat=StructNew();
myFormat.color="blue";
myFormat.bold="true";
myFormat.underline="true";
myFormat.alignment="center";
myFormat.rotation=45;
myFormat.italic="true"
// Set formatting to cell (10,5)
SpreadsheetFormatCell(theSheet,myFormat,11,5)
spreadsheetWrite(theSheet,theFile,"yes")
// get cell format
cellFormat=spreadsheetGetCellFormat(theSheet,11,5)
writeDump(cellFormat)
</cfscript>