When I try to generate a report it turns out that the "The document does not have pages", this is the code with which I generate it.
public class Reporte {
public void generarReporte() throws JRException{
try{
HashMap parametro = new HashMap();
parametro.put("","");
JasperReport reporte = JasperCompileManager.compileReport("report1.jrxml");
JasperPrint jasperPrint = JasperFillManager.fillReport(reporte,parametro);
JasperViewer view = new JasperViewer(jasperPrint,false);
view.setVisible(true);
} catch(Exception ex){
System.out.println("Error: "+ex);
}
}
}