The Edraw Office Viewer Component provides some simple automation functions. You can call them directly. Or you can get the dispatch interface then do the automation by yourself.
Get Dispatch Interface to support the Office Automation
Description: Returns the Automation interface of the document object.
Function: Application([out,retval] IDispatch** ppdisp);Description: Returns the Automation interface of the application.
The control 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:
Set objWord = OfficeViewer1.ActiveDocument
objWord.Content.Text = “This was added by Automation”
Set objApp = OfficeViewer1.Application
objApp.DisplayScrollBars = False