Jump to content
We've recently updated our Privacy Statement, available here ×

view image in xlsx file


pedror

Recommended Posts

Hi everybody!!

I'm trying to export a report into several formats (docx, pdf, pptx xlsx, html and rtf) and it's working fine in all of them, except in xlsx format. The trouble that I have is related with images.

The .xlsx exported file shows correctly all the data exept the image. It is showed a blank cell with the respective position hight and width, but no image !!

When I preview with IReport I can see everything like it's supose to be.

I also view the samples and I have a similar code (at least I think so)

 

JRXlsxExporter exporter = new JRXlsxExporter();
       
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
        exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET,    Boolean.FALSE);
        exporter.setParameter(JRXlsExporterParameter.IGNORE_PAGE_MARGINS,Boolean.TRUE);
        exporter.setParameter(JRXlsExporterParameter.IGNORE_PAGE_MARGINS, Boolean.TRUE);
        exporter.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE);
        exporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
        exporter.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);

        exporter.exportReport();

 

Anyone could help or guid me??

 

Thanks all

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...