Como chamar sub relatório java? TIBCO - JASPER

0 respostas
ireportprogramaçãojava
H

COM ESSE CODIGO ABAIXOU EU CHAMO UM RELATORIO COMUM MAS COMO EU CHAMO UM SUB-RELATÓRIO IREPORT

if (rbTipo.isSelected()) {

try {

HashMap filtro = new HashMap();
filtro.put("competenciaTipo", cboCompetencia.getSelectedItem().toString());

                JasperPrint print = JasperFillManager.fillReport("\\\\ALMCZ01\\Publico\\RELATORIOS\\PorTipo_5.jasper", filtro, conexao);

                JasperViewer.viewReport(print, false);
                

            } catch (JRException ex) {
                Logger.getLogger(TelaRelatorios.class.getName()).log(Level.SEVERE, null, ex);
                JOptionPane.showMessageDialog(rootPane, ex);
            }
Criado 6 de setembro de 2017
Respostas 0
Participantes 1