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

open jasper report on mobile. URGENT!!!!!


sistemi.sanita

Recommended Posts

HELP!!!!

I created a report with Jaspersoft iReport Designer 5.6.0 and the report is successfully opened on my web application ( on different browsers : IE , Firefox , Chrome , etc ) , but does not open on the Android browser . My code is:

                JasperPrint jasperPrint = JasperFillManager.fillReport(jrxml,parametri,dbcon);
                OutputStream os = response.getOutputStream();
                JRExporter exporter = null;
                response.setContentType("application/pdf");                   
                response.setHeader("Content-Disposition",  "inline; filename="report.pdf"");                                    
                exporter = new  JRPdfExporter();                    
                exporter.setParameter(JRExporterParameter.JASPER_PRINT,  jasperPrint);
                exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,  os);                                                 
                dbcon.close();                  
                exporter.exportReport();                                            
                os.close();        

Thank's

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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