Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class Definition Word.Application not found
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00291073
Message ID:
00291084
Views:
26
>Hello,
>
>I copied a simple example from the www.foxforum site:
>
>loWord = CREATEOBJECT("Word.application")
>.
>loWord.Quit()
>
>When I run it, I get the error on the 1st line:
>"Class Definition WORD.APPLICATION is not found"
>
>Using Word 7.0 (Office 95) -- any ideas?

Check the registry - it's likely that the older Office95 version of Word did not have the same automation model (as I remember, it used a Word.Basic object rather than Word.Application, but it's been a long time since I checked.)

You can check by examining the registry - if Word.Application is supported, there's be a registry key HKEY_CLASSES_ROOT\Word.Application present.

>[Note the command Creatobject(Word.Document) doesn't cause an error, but I don't have a list of properties to continue.]
>
>Kevin
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform