General information
Category:
COM/DCOM and OLE Automation
Title:
Still having problems with OLE Control
Dan, I am still having problems with my OLE Control.
I have created a class "OleWordObject" based on the OLEControl object. In the INIT event I have the following code:
LPARAMETERS cdocfl
this.documentfile = cdocfl
In my main form's INIT event I have the code: thisform.addobject("ole2", "oleWordObject", "Word.Document.6", "C:\test.doc"). It calls the class but when it gets to setting the documentfile property, I get the same error that that property is read-only.
Do you have any other suggestions? I do not understand what I am doing wrong.
Thanks,
Becky
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only