RESPONDER UNA PREGUNTA

Si para responder la pregunta, crees necesario enviar un archivo adjunto, puedes hacerlo a traves del correo [email protected]

    Pregunta:  64090 - GENERAR UN IREPORT DESDE NETBEANS
Autor:  Jose Forero
soy un novato en netbeans e ireport, he creado una conexion a base de datos mysql sencilla y un reporte muy sencillo en ireport, y tengo el .jasper y hago el llamado desde netbeans al reporte pero este no su muestra ni sale ningún error, si alguien me puede ayudar gracias. el codigo es el siguiente

Class.forName("com.mysql.jdbc.Driver");
Connection conexiona = DriverManager.getConnection("jdbc:mysql://localhost:3306/t", "root", "root");
JasperReport reporte = (JasperReport) JRLoader.loadObject("report2.jasper");
JasperPrint jasperPrint = JasperFillManager.fillReport(reporte, null, conexiona);
JasperViewer ventanavisor = new JasperViewer(jasperPrint, false);
ventanavisor.setTitle("informe");
ventanavisor.setVisible(true);


Nombre
Apellidos
Correo
Comentarios