Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Definition Word.Application not found
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00291073
Message ID:
00291084
Vues:
25
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform