Jump to content

Graph and Images not displayed on XLSX Export


gayamgn

Recommended Posts

Hi,

Am using JRXLSXExporter class to export XLSX format.

am able to get the data but not the Graph / Image.

Please help if any one have solution for the same. Let me know if i need to set any parameter??

 

 

 

Code:
JRXlsxExporter exporterxlsx = new JRXlsxExporter();File outputFilexlsx = new File(System.getProperty("user.dir") +"/WebContent/reports/sample.xlsx");File parentFilexlsx = outputFile.getParentFile();if (parentFilexlsx != null)parentFilexlsx.mkdirs();FileOutputStream fosxlsx = new FileOutputStream(outputFilexlsx); exporterxlsx.setParameter(JRExporterParameter.JASPER_PRINT, jp);exporterxlsx.setParameter(JRExporterParameter.OUTPUT_STREAM, fosxlsx);exporterxlsx.exportReport();
Link to comment
Share on other sites

  • Replies 2
  • 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...