LINK DO QUESTIONÁRIO
quinta-feira, 30 de novembro de 2017
segunda-feira, 6 de novembro de 2017
Executar Relatorio no Java (IREPORT)
MENU RELATÓRIO -> (EXECUÇÃO DO IREPORT)
Connection con = ConnectionFactory.getConnection();
int confirma = JOptionPane.showConfirmDialog(null, "Confirma?", "Atenção", JOptionPane.YES_NO_OPTION);
if (confirma == JOptionPane.YES_OPTION) {
try {
JasperPrint print = JasperFillManager.fillReport("C:\\report\\Relatorio2.jasper", null, con);
JasperViewer.viewReport(print, false);
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e);
}
}
}
Connection con = ConnectionFactory.getConnection();
int confirma = JOptionPane.showConfirmDialog(null, "Confirma?", "Atenção", JOptionPane.YES_NO_OPTION);
if (confirma == JOptionPane.YES_OPTION) {
try {
JasperPrint print = JasperFillManager.fillReport("C:\\report\\Relatorio2.jasper", null, con);
JasperViewer.viewReport(print, false);
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e);
}
}
}
Assinar:
Comentários (Atom)