Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <imageExpression><![CDATA["F:\Datos\Desktop\ProyectoAC\src\imagenes\icono.png"]]></imageExpression>
- // TODO add your handling code here:
- Conectar con = new Conectar();
- Connection conexion = con.conexion();
- try {
- String rutaReporte = System.getProperty("user.dir") + "/src/Informes/Socios.jasper";
- JasperReport jasperReport = (JasperReport) JRLoader.loadObjectFromFile(rutaReporte);
- JasperPrint print = JasperFillManager.fillReport(jasperReport, null, conexion);
- JasperViewer view = new JasperViewer(print, false);
- view.setVisible(true);
- } catch (Exception e) {
- System.err.println("Error al generar el reporte -> " + e.getMessage());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement