Hello, I'm newbie to JasperReports and I'm facing a problem in order to generate my first report (a DANFE), everything I've seen on jasper so far involved database, as my application does not use bank I ignored this and I'm trying to pass the data via HashMap, everything seems to be ok, the application works perfectly, but when the report will open I get a message saying that the document does not have pages, I have already tested other JRXML layouts that I found there, none open, follow the code that loads the jasper.
private void loader(){
try{
JasperReport jr = JasperCompileManager.compileReport("src/jasper/teste.jrxml");
Map dados = new HashMap();
dados.put("Emit_CNPJ", this.nfe.getEmitente().getCnpj());
JasperPrint jp = JasperFillManager.fillReport(jr, dados);
JasperViewer jv = new JasperViewer(jp, false);
jv.setTitle("DANFE");
jv.setVisible(true);
debug.log("DANFE carregada com sucesso.");
}catch(JRException ex){
debug.log("Falha ao carregar JasperReports.");
//Logger.getLogger(Visualizer.class.getName()).log(Level.SEVERE, null, ex);
}
}