Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Error Using Word
Message
From
01/10/2001 13:35:28
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
OLE Error Using Word
Miscellaneous
Thread ID:
00562675
Message ID:
00562675
Views:
63
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
Next
Reply
Map
View

Click here to load this message in the networking platform