j'ai aucune idée sur la boite de dialogue qui s'affiche le document ne contient aucune page
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 try { Class.forName("com.mysql.jdbc.Driver"); Connection con; con = DriverManager.getConnection("jdbc:mysql://localhost:3306/nom", "root", ""); String reportPath = "C:\\Users\\pc\\Desktop\\code\\chemain\\src\\Etatd\\report2.jrxml"; JasperReport jr; jr = JasperCompileManager.compileReport(reportPath); JasperPrint j=JasperFillManager.fillReport(jr, null, con); JasperViewer.viewReport(j); JOptionPane.showMessageDialog(this, "bien"); } catch (ClassNotFoundException | SQLException | JRException ex) { Logger.getLogger(Etatd.class.getName()).log(Level.SEVERE, null, ex); JOptionPane.showMessageDialog(this, "erreur"+ex.getMessage()); } }
ya 0 erreur dans la console je ne sais pas d'ou viens le probleme
Partager