Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <imageExpression><![CDATA["F:\Datos\Desktop\ProyectoAC\src\imagenes\icono.png"]]></imageExpression>
  2.  
  3. // TODO add your handling code here:
  4. Conectar con = new Conectar();
  5. Connection conexion = con.conexion();
  6. try {
  7. String rutaReporte = System.getProperty("user.dir") + "/src/Informes/Socios.jasper";
  8. JasperReport jasperReport = (JasperReport) JRLoader.loadObjectFromFile(rutaReporte);
  9. JasperPrint print = JasperFillManager.fillReport(jasperReport, null, conexion);
  10. JasperViewer view = new JasperViewer(print, false);
  11. view.setVisible(true);
  12.  
  13. } catch (Exception e) {
  14. System.err.println("Error al generar el reporte -> " + e.getMessage());
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement