function compilar_reporte($path_plantilla, $path_reporte = null)
 {
     if (is_null($path_reporte)) {
         $this->path_reporte = $path_plantilla . '.jasper';
     }
     //Compilamos la plantilla
     $phpJasperCompileManager = new JavaClass("net.sf.jasperreports.engine.JasperCompileManager");
     $phpJasperCompileManager->compileReportToFile($path_plantilla, $this->path_reporte);
 }