-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
  • 21,796
  • 18
  • 106
  • 231

1 Answers1

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