Whatever message this page gives is out now! Go check it out!
SpreadsheetSetFooterImage(spreadsheetObject, byte[] imageData, String alignment, String imageType)
SpreadsheetSetFooterImage(spreadsheetObject, String image, String alignment)Name | Required | Type | Description |
spreadSheetObject | Yes | ExcelInfo | The Excel spreadsheet object to which to add the footer image. |
alignment | Yes | String | The image’s alignment in the footer. The values are left, center, or right. |
image | Yes | CFImage | A ColdFusion image object. The supported image formats are jpg/jpeg or png. |
<cfscript>
myImage=imageNew("",200,50)
imageSetDrawingColor(myImage,"yellow")
imageSetAntialiasing(myImage,"on")
imageDrawRect(myImage,80,25,50,30,"yes")
</cfscript>
<cfquery name="art" datasource="cfartgallery">
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "art-footer.xls";
// create a spreadsheet object
theSheet=spreadsheetNew("SampleData",true)
// add rows from the table to the spreadsheet
spreadsheetAddRows(theSheet,art)
spreadsheetSetFooterImage(spreadsheet = theSheet,
image = myImage,
alignment = 'center',
imagetype = 'png')
// write the spreadsheet
spreadsheetWrite(theSheet,theFile,"yes")
</cfscript><cfquery name="art" datasource="cfartgallery">
SELECT * FROM ART
</cfquery>
<cfscript>
theFile=GetDirectoryFromPath(GetCurrentTemplatePath()) & "art-footer-image.xls"
theImage=GetDirectoryFromPath(GetCurrentTemplatePath()) &"Images/jpegImage.jpeg"
// create a spreadsheet object
theSheet=spreadsheetNew("SampleData",true)
// add rows from the table to the spreadsheet
spreadsheetAddRows(theSheet,art)
spreadsheetSetFooterImage(spreadsheet = theSheet,
image = theImage,
alignment = 'center')
// write the spreadsheet
spreadsheetWrite(theSheet,theFile,"yes")
</cfscript>