Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Error Using Word
Message
De
01/10/2001 13:35:28
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
OLE Error Using Word
Divers
Thread ID:
00562675
Message ID:
00562675
Vues:
64
I'm getting an OLE error

OLE error code 0x80020006: Unknown name.

on the last line of the code below:
cSource = 'This is a test'
oWord = CREATEOBJECT("Word.Application")     && Open Word
oWord.WindowState = 2                        && Minimized
_ClipText = ""                               && Clear Clipboard
_ClipText = cSource
oWord.Documents.Add.cSource.Paste          && Paste into new word doc
What is wrong and where can I find information on the correct commands/syntax for OLE calls? Thanks!

Regards, Renoir
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform