Show TOC Start of Content Area

Background documentation IWDIOSFactory  Locate the document in its SAP Library structure

If you have set the property expertMode in OfficeControl to true, you can use the IWDIOSFactory. to handle the office integration.

Document handling with IWDIOSDocument

Using the method getDocumentProxy you can retrieve an instance of IWDIOSDocument. You need this proxy to:

      create a new document: createDocument(IWDAttributePointer errorpointer)

      open an existing document: openDocument(IWDAttributePointer errorpointer).

      close an open document: closeDocument(IWDAttributePointer errorpointer).

      save an open document: saveDocument(IWDAttributePointer errorpointer).

The parameter of type IWDAttributePointer allows you to receive error messages and to store them in a context attribute of type String.

IWDIOSEnvironment

Using the method getEnvironment you can retrieve an instance of IWDIOSEnvironment to call methods to:

      handle options for tracing, auto saving and protection.

      get information about the office applications and versions installed on the client.

The method getSupportedApplications(IWDAttributepointer suppapptable, IWDAttributePointer errorpointer)fills the context attribute, to which the first parameter points to, with a list of office applications available on the client.

IWDIOSWordProcessing

Using the method getWordProcessingyou can retrieve an instance of IWDIOSWordProcessing to implement mail merge function.

More information:

http://sdn.sap.com/irj/sdn/javadocs

End of Content Area