>I have a 'word.application' OLE object (OLEControl) on my form that was created at design time. My basic problem is how to use the object. How do I get to use the DOCUMENTS.ADD() method. I have no problem if i instantiated the object using CREATEOBJECT() but i don't want to create the object at run-time. The OLEControl's name is OLE1. Is it ok if i say something like THISFORM.OLE1.OBJECT.DOCUMENTS.ADD() or THISFORM.OLE1.OBJECT.SELECTION.TYPETEXT('Hello OLE')
Omar,
You could say :
THISFORM.OLE1.OBJECT.APPLICATION.DOCUMENTS.ADD
However since OleControl you added is not a word.application but a word.document object I don't know how you could utilize the new doc added.
Honestly I never use OleControl for word. Instead using a web browser control or doing with createobject() sounds much much better.
Cetin