fmz ?
to tentando gerar um relatorio mas nao ta dando certo…onde ta errado ?
ResultSet rs=banco.getConsulta("select im.imocodigo,im.imorua,im.imonumero,ba.ba_nome,im.imofrente,im.imocomissaovenda,im.comissaoaluga,im.imvaloraluga,im.imvalorvenda,im.imstatus,im.imcomodos,im.imcondicao,im.imindicacao,im.imlaje,pe.pescod,pe.pesnome ,agua,luz from imovel im,bairros ba , pessoa pe where im.ba_codigo=ba.ba_codigo and pe.pescod=im.pescod");
//---------------
// try {
//stat = connect.createStatement();
try{
//rs = stat.executeQuery(query);
JasperReport jasperReport2 = JasperCompileManager.compileReport("index.relatorios\relatorioimovel.jrxml");
JasperPrint jasperPrint2 = JasperFillManager.fillReport( jasperReport2, new HashMap(), new JRResultSetDataSource(rs));
JasperExportManager.exportReportToPdfFile(jasperPrint2,"d:\\c.pdf");
JasperViewer.viewReport(jasperPrint2);
}catch (Exception e){System.out.println("erro");}
}