|
Description Adds
a footer to the specified worksheet.
CategoryMicrosoft
Office Integration
Function syntaxSpreadsheetSetFooter(spreadhsheetobj, left footer, center footer, right footer)
HistoryColdFusion
9: Added the function.
Parameters
Parameter
|
Description
|
spreadsheetobj
|
The Excel spreadsheet object to which to
add the footer.
|
left footer
|
Adds the footer in the left side of the
worksheet.
|
center footer
|
Adds the footer in the center of the worksheet.
|
right footer
|
Adds the footer in the right side of the
worksheet.
|
UsageThe
footer that you add appears on the printed worksheet document.
ExampleThe
following example adds a footer in the left side of the worksheet.
<cfspreadsheet action="read" src="#dirname#SingleSheet.xls" sheet="2" name="SpreadsheetObj" >
<cfset spreadsheetSetHeader(SpreadsheetObj,"left header","center header","right header")>
<cfset spreadsheetSetFooter(SpreadsheetObj,"left footer","center footer","right footer")>
<cfspreadsheet action="write" filename="#dirname#MySheet.xls" name="SpreadsheetObj" overwrite="true" >
|
|
|