Information générale
Catégorie:
COM/DCOM et OLE Automation
>I can create a word application, and make it visible, but I can't always get it to add or open a document. Sometimes it works OK. Sometimes I get the error that says my command is not found "OLE Error Code 0x8002003: Member not found". And I know that the ADD is a member of the documents collection.
>When I have done the oWord.CreateObject("word.application"), and made it visible with oWord.visible = .t. I can see Word on my task bar, and go to it, open a doc and everyting in Word works OK. Except when I toggle back to VFP6, I get the errors when I try to add or open an existing doc.
Can you post the code that works intermittently? I can't think of any one absolute thing (a dozen or so possibilities, though) right off hand, but if I see the code, something might jump out at me.
- della
Précédent
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