Make printable format from JAVA 8

0

QUESTION EDITED.

And I managed to perform the ones I require, the error as they told me in the previous question I made was in the bookstores, which I already corrected and also eliminated the lines of the uuid for another error that came out, now the detail I have is that the report throws me does not have pages, it does not give me error but it sends report without pages, I attach my code of how I call the report.

Code to call the report with parameters and without data connection.

private void BTImprimirActionPerformed(java.awt.event.ActionEvent evt) {                                           

    try{

  HashMap parametro = new HashMap();
  parametro.put("paciente",TFPaciente.getText());
  parametro.put("indicaciones", TAConsulta.getText());

  JasperReport reporte = JasperCompileManager.compileReport("C:\Users\Saul\Documents\NetBeansProjects\GinecologiaHEG\src\ginecologiaheg\RecetaReporte.jrxml");    

  JasperPrint jasperPrint  = JasperFillManager.fillReport(reporte,parametro);
  JasperViewer view =  new JasperViewer(jasperPrint,false);
  view.setVisible(true);
} catch(Exception ex){
    System.out.println("Error: "+ex);
}

}       

It is worth mentioning that within the report I manage 2 parameters which is the only thing I want to pass, in itself it is a medical prescription where I give the patient's name and the indications and that's it, without connection or anything.

Parameters: patient and indications.

Greetings and thank you in advance.

    
asked by Saul Moreno Madrigal 10.08.2018 в 07:35
source

0 answers