Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement