You can find the CFFiddle demo of this function and other spreadsheet functions as part of a project that is shared with you.
Click the button below to launch CFFiddle.
To copy the project in your workspace in CFFiddle, follow the steps below:
Sets document properties for a new spreadsheet or modifies properties for an existing spreadsheet.
Nothing
SpreadsheetAddInfo(spreadsheetobj, property_struct)
ColdFusion 9: Added the function.
Parameter |
Description |
|---|---|
spreadsheetobj |
The Excel spreadsheet object from which to get the value. |
property_struct |
The following properties of the spreadsheet can be modified or set:
|
This sample sets the following properties of the file myinfo.xlsx:
<cfscript>
spreadsheetObj=SpreadSheetNew("Test sheet");
myInfo=StructNew();
myInfo.title="sample title";
myInfo.category="sample category";
myInfo.author="sample author";
myInfo.subject="sample subject";
SpreadSheetAddInfo(spreadsheetObj,myInfo);
myFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "myinfo.xlsx";
SpreadSheetWrite(spreadsheetObj,"#myFile#",true);
</cfscript>
Sign in to your account