Package ag.ion.bion.officelayer.application

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


 
      LocalOfficeApplicationConfiguration localOfficeApplicationConfiguration = new LocalOfficeApplicationConfiguration();
      localOfficeApplicationConfiguration.setPort("8101");
      localOfficeApplicationConfiguration.setApplicationHomePath("d:\\Programme\\OpenOffice.org1.1.3");
      officeApplication.setConfiguration(localOfficeApplicationConfiguration);
      officeApplication.activate();
      docu = (ITextDocument)officeApplication.getDocumentService().loadDocument("file:///d:/java/eclipse/workspace/officeapi/test/testETables.sxw");
     
      ITextTable table = docu.getTextTableService().getTextTables()[0];
      ETextTable textTable = new ETextTable(docu,table);
     
View Full Code Here


    hashMap.put(IOfficeApplication.APPLICATION_PORT_KEY, port);

    try {
      IOfficeApplication officeApplication = OfficeApplicationRuntime
          .getApplication(hashMap);
      officeApplication.activate();

      System.out.println("Constructing a new writer document ...");
      ITextDocument textDocument = (ITextDocument) officeApplication
          .getDocumentService()
          .constructNewDocument(IDocument.WRITER,
View Full Code Here

      configuration.put(IOfficeApplication.APPLICATION_HOME_KEY, OPEN_OFFICE_ORG_PATH);
      configuration.put(IOfficeApplication.APPLICATION_TYPE_KEY, IOfficeApplication.LOCAL_APPLICATION);
      final IOfficeApplication officeAplication = OfficeApplicationRuntime.getApplication(configuration)
     
      officeAplication.setConfiguration(configuration);
      officeAplication.activate();
     
      final Frame frame = new Frame();
      frame.setVisible(true);
      frame.setSize(400, 400);
      frame.validate();
View Full Code Here

      localOfficeApplicationConfiguration.setPort("8101");
      localOfficeApplicationConfiguration
          .setApplicationHomePath("d:\\Programme\\OpenOffice.org1.1.3");
      officeApplication
          .setConfiguration(localOfficeApplicationConfiguration);
      officeApplication.activate();
      docu = (ITextDocument) officeApplication
          .getDocumentService()
          .loadDocument(
              "file:///d:/java/eclipse/workspace/officeapi/test/testETables.sxw");
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.