satheeshskumar Posted February 15, 2020 Share Posted February 15, 2020 I'm new to JasperReports. I'm able to export PDF report but excel (xls and xlsx) download file is showing junk characters. I didn't understand the issue. Excel export File content, generated by Java with JasperReports 6.11: screenshot of the exported excel file is attached Following code is used for export to Excel: contentType = "application/vnd.ms-excel"; exporter = new JRXlsExporter(); setExporterOutput(new SimpleOutputStreamExporterOutput(servletoutputstream)) .setExporterInput(new SimpleExporterInput(jasperPrint)); (exporter)).exportReport(); Link to comment Share on other sites More sharing options...
satheeshskumar Posted February 15, 2020 Author Share Posted February 15, 2020 it is working now Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now