Package ag.ion.bion.officelayer.document

Examples of ag.ion.bion.officelayer.document.IDocumentService.loadDocument()


      String datei = "p:/tests/bsp1.doc";
      String dateiNeu = "p:/tests/bsp1NEU.doc";
      IOfficeApplication officeAplication = OfficeApplicationRuntime.getApplication(configuration);
      officeAplication.activate();
      IDocumentService documentService = officeAplication.getDocumentService();
      IDocument document = documentService.loadDocument(datei, DocumentDescriptor.DEFAULT);
      ITextDocument textDocument = (ITextDocument) document;

      ITextService textService = textDocument.getTextService();
      IBookmarkService bookmarkService = textService.getBookmarkService();
      IBookmark bookmark = bookmarkService.getBookmark("Status");
View Full Code Here


      officeAplication.activate();
      IDocumentService documentService = officeAplication.getDocumentService();
     
      // we expect a file, beeing placed in the user home directory, otherwise use another url
      String url = System.getProperty("user.home") +System.getProperty("file.separator")+ DOCUMENT_NAME;
      IDocument document = documentService.loadDocument(url);
     
      ITextDocument textDocument = (ITextDocument)document;
      textDocument.addCloseListener(new SnippetDocumentCloseListener(officeAplication));

    }
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.