EDraw Office Viewer Component also supports a property called Dispatch that allows you to obtain a reference to the IDispatch interface of the embedded object. From this interface you can automate the object to perform tasks, edit parts of the document, or gather information about what a user has added or removed. For example, if you have a Word document open, you can use code that resembles the following to add a line of text:

Sub OfficeAutomationDemo()
    WebOffice1.CreateNew “Word.Document”
    Set objWord = WebOffice1.GetActiveDocument
    objWord.Content.Text = “This was added by Automation”
End Sub