Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method or Property not found when automating WordPerfect
Message
 
To
09/05/2003 19:20:07
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00786980
Message ID:
00816525
Views:
27
Jack,
Did you ever determine what was causing this?

>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..
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform