thanks Brandon you are right. I can open the JasperReport Viewer instance of the acrobat.
I just make this, but i have the same problem, how can i show the viewer inside my aplication? Also when i close the jasper viewer this close my application. This is my code, any idea?
private void print() {
Connection conn;
try {
conn = DriverManager.getConnection("jdbc
dbc
B_Test", "", "");
JasperReport report = (JasperReport) JRLoader
.loadObject("Reports/lstUsers.jasper");
JasperPrint jasperPrint = JasperManager.fillReport(report, null,
conn);
JasperManager.printReportToPdfFile(jasperPrint,
"C:\\Nico\\Vision\\Reports\\Users.pdf");
JasperViewer.viewReport(jasperPrint);
} catch (SQLException e) {
e.printStackTrace();
} catch (JRException e) {
e.printStackTrace();
}
}