Open dgiet opened 12 years ago
SpreadsheetAddImage is not handling things properly when you pass in an image object, rather than a file path. A temporary work around is to pass in the bytes of the image object instead.
<cfset imageBytes = ImageGetBlob(myBgImage)>
<cfset SpreadsheetAddImage(s, imageBytes, "jpg", "0,0,26,26,#i#,#j#,#i+1#,#j+1#")>
Error Railo 3.3.1.000 Error (expression) Message No matching Method/Function for org.apache.poi.hssf.usermodel.HSSFWorkbook.addPicture(struct, numeric) found Stacktrace The Error Occurred in C:\DataSites\pfizer\WEB-INF\railo\components\org\cfpoi\spreadsheet\Spreadsheet.cfc: line 437
called fromC:\DataSites\pfizer\WEB-INF\railo\library\function\SpreadsheetAddImage.cfm: line 24
called fromC:\DataSites\pfizer\front\templates\export_xls.cfm: line 305
when using this code
All except the line <cfset SpreadsheetAddImage(s, myBgImage, "jpg", "0,0,26,26,#i#,#j#,#i+1#,#j+1#")> works fine
Thanks for your help Didier Giet