Package ag.ion.bion.officelayer.application

Examples of ag.ion.bion.officelayer.application.IOfficeApplication.deactivate()


    try {
      IOfficeApplication application = OfficeApplicationRuntime.getApplication(hashMap);
      application.activate();
      IDocument document = application.getDocumentService().constructNewHiddenDocument(IDocument.IMPRESS);
      document.getPersistenceService().export(pdfExportPath, PDFFilter.FILTER);
      application.deactivate();
    }
    catch(Throwable throwable) {
      throwable.printStackTrace();
    }
  }
View Full Code Here


      IDocument document = officeAplication.getDocumentService().constructNewDocument(IDocument.WRITER,
          DocumentDescriptor.DEFAULT);
      ITextDocument textDocument = (ITextDocument) document;
      textDocument.getTextService().getText().setText("HalloWelt");
      textDocument.close();
      officeAplication.deactivate();
    }
    catch (Throwable exception) {
      exception.printStackTrace();
    }
  }
View Full Code Here

      System.out.println("Inserting text into the new writer document ...");
      textDocument.getTextService().getText().setText("This is a NOA test.");
      System.out.println("Storing new writer document ...");
      textDocument.getPersistenceService().store(new FileOutputStream("noatest.odt"));
      textDocument.close();
      officeApplication.deactivate();
     
    }
    catch(Throwable throwable) {
      throwable.printStackTrace();
    }
View Full Code Here

      ITextDocumentImage textDocumentImage = textContentService
          .constructNewImage(graphicInfo);
      textContentService.insertTextContent(textCursor.getEnd(),
          textDocumentImage);

      officeAplication.deactivate();
    }
    catch(OfficeApplicationException exception) {
      exception.printStackTrace();
    }
    catch(Throwable exception) {
View Full Code Here

          frame.dispose();
          document.close();
          file.delete();
          try {
            System.out.println("Deactivating OpenOffice.org connection ...");
            application.deactivate();
          }
          catch (OfficeApplicationException applicationException) {           
          }
        }       
      });     
View Full Code Here

      frame.dispose();
      document.close();
      file.delete();
      try {
        System.out.println("Deactivating OpenOffice.org connection ...");
        application.deactivate();
      }
      catch (OfficeApplicationException applicationException) {           
      }        
    }
    catch(Throwable throwable) {
View Full Code Here

      IOfficeApplication application = OfficeApplicationRuntime.getApplication(hashMap);
      application.activate();
      IDocument document = application.getDocumentService().constructNewHiddenDocument(IDocument.BASE);
     
      document.getPersistenceService().store(storePath);
      application.deactivate();
      application.dispose();
    }
    catch(Throwable throwable) {
      throwable.printStackTrace();
    }
View Full Code Here

          document.close();
          file.delete();
          try {
            System.out
                .println("Deactivating OpenOffice.org connection ...");
            application.deactivate();
          } catch (OfficeApplicationException applicationException) {
          }
        }
      });
View Full Code Here

      document.close();
      file.delete();
      try {
        System.out
            .println("Deactivating OpenOffice.org connection ...");
        application.deactivate();
      } catch (OfficeApplicationException applicationException) {
      }
    } catch (Throwable throwable) {
      throwable.printStackTrace();
      fail(throwable.getMessage());
View Full Code Here

        docu.close();
      }
      catch (Exception excep) {
        try {
          docu.close();
          officeApplication.deactivate();
        }
        catch(Exception e) {
          fail();
        }
        fail();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.