6 Replies Latest reply on Aug 7, 2008 11:35 AM by -==cfSearching==-

    Inserting an Image in Excel with POI HSSF

    MinOP
      Has anyone been successful creating an Excel document with an embedded image using POI HSSF?

      Create a nicely formatted Excel is no, problem - but I can't seem to figure the image part out. I am not calling the loadPicture correctly, which is confusing CF.

      <cfset patriarch = newSheet.createDrawingPatriarch()/>
      <cfset patriarch.createPicture(createObject("java",
      "org.apache.poi.hssf.usermodel.HSSFClientAnchor").init(),
      loadPicture("asset/images/logo_e2eA.png", workSheet))/>