Example #1
0
 /** Mostrar el archivo en pantalla. */
 public void show() throws Exception {
   if (!StringUtils.isEmpty(fileName)) {
     if (new File(fileName).exists()) {
       DesktopUtils.openFile(fileName);
     } else throw new Exception("File " + fileName + " not found");
   }
 }
Example #2
0
 /** Mostrar el archivo en pantalla. */
 public void show() throws Exception {
   if (fileName != null && !fileName.equals("")) {
     if (new File(fileName).exists()) {
       DesktopUtils.openFile(fileName);
     } else throw new Exception("File " + fileName + " not found");
   }
 }
Example #3
0
 /**
  * Ejecutar el informe.
  *
  * @throws Exception
  */
 public void executeAndShow() throws Exception {
   execute(true);
   DesktopUtils.openFile(fileName);
 }