Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method or Property not found when automating WordPerfect
Message
De
09/05/2003 19:20:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Method or Property not found when automating WordPerfect
Divers
Thread ID:
00786980
Message ID:
00786980
Vues:
59
With Windows-98 and WordPerfect 8, the following code works fine in VFP 6.0a, but fails after the third or fourth iteration in VFP 7.0 SP1 and 8.0. Note that on Windows-2000, all three versions of VFP may yield the error "Server threw an Exception" after three or four iterations (this error can be apparently be ignored with impunity; the error on Windows 98 will recur if ignored).

Note that closing VFP and reopening resolves the problem (at least for another three or four iterations). It also happens when I build an EXE and run it. I have also tried adding DOEVENTS with no effect.

DO WHILE MESSAGEBOX("Try it again?", 4) = 6
oWP = CREATEOBJECT("WordPerfect.PerfectScript")

x = oWP.AppMaximize()

x = oWP.Quit()

RELEASE oWP
ENDDO

The error message reads as follows:
OLE IDispatch exception code 1001 from : The method or property is not found in the product's object description. To determine which command is in error, use the debugger provided with the OLE Automation programming environment you are using. - WordPerfect.appmaximize..
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform