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

Does JRRtfExporter support graphics?


blackbeam

Recommended Posts

Hi Folks,

Maybe I missed something about JRRtfExporter. I created a report containing a pie chart and an image, and they could be exported to PDF, XLS, HTML successfully. But they disappeared in the RTF output, no errors.

The following is the code of exporting to XLS and RTF, the XLS one works.

            JExcelApiExporter xlsExporter = new JExcelApiExporter();
            xlsExporter.setParameter(JRExporterParameter.JASPER_PRINT, jrprint);
            xlsExporter.setParameter(JRXlsAbstractExporterParameter.IS_IGNORE_GRAPHICS, Boolean.FALSE);
            xlsExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, TEMP_PATH + "report_1.xls");
            xlsExporter.exportReport();

            JRRtfExporter rtfExporter = new JRRtfExporter();
            rtfExporter.setParameter(JRExporterParameter.JASPER_PRINT, jrprint);
            rtfExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, TEMP_PATH + "report_1.rtf");
            rtfExporter.exportReport();

I was wondering should I do anything similar to IS_IGNORE_GRAPHICS=false to RTF reports? I couldn't find any parameters for that.

Your help would be appreciated! Thanks.

Johnny

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 weeks later...

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...