@Valter_Jlle escreveu:
Boa noite, bom sou novo aqui e no java também e estou com uma dificuldade...
Estou tentando gerar relatório no netbeans comJasperSoft
Studio, o relatório é ireport, mas na minha aplicação ele gera como se não tivesse página.
Não consegui identificar nenhum ponto onde poderia estar esse problema, se alguém ai tiver uma luz pra mim agradeço muito...private void gerarRelatorio(){ try{ HashMap filtro = new HashMap(); filtro.put("Id", Integer.parseInt(txtCodigoPedido.getText())); Connection conn = ConexaoBanco.getConnection(); if(conn==null) System.out.println("conexao nula"); JasperPrint print = JasperFillManager.fillReport("Ireport/RelatorioPedido.jasper", filtro,conn); JasperViewer viewer = new JasperViewer(print, false); viewer.setVisible(true); }catch (Exception ex){ System.out.println("Problema ao gerar relatório:"+ex.getMessage()); } }
Mensagens: 2
Participantes: 1