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

0

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

sistemi.sanita's picture
Joined: Sep 28 2015 - 1:41am
Last seen: 5 years 1 month ago

0 Answers:

No answers yet
Feedback
randomness