-1

i have this:

String generado="/Users/MyUser/Documents/libros/HelloJasper.pdf";
JasperExportManager.exportReportToPdfFile(jasperPrint, generado);

this keeps the pdf in the specified path, but I want to display it in the browser.I would like to have the option to keep it in the computer after seeing it in the browser . Thank you.

Alex K
  • 22,315
  • 19
  • 108
  • 236

1 Answers1

0
JasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport,parameters,beanColDataSource);
JasperViewer jasperViewer = new JasperViewer(jasperPrint);
jasperViewer.setVisible(true);