Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Perfect Woes
Message
From
01/09/1999 15:43:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Word Perfect Woes
Miscellaneous
Thread ID:
00260309
Message ID:
00260309
Views:
53
This code sample works fine with WP 7 , but don't seem to get the job done with 8 or 9. Basically I get the error "OLE IDispatch exception code 65442 from WPWIN9: AppRestore...blah".. here's the code:
      objWP = CreateObject("WordPerfect.PerfectScript")
      rc=objWP.AppRestore
      rc=objWP.type(checkme)
      rc=objWP.Display(1)
      rc=objWP.WPSpeller
      wc=dialog(0,0,8,40,"Click OK when spell check complete","OK")
      rc=objWP.Display(0)
      rc=objWP.SelectAll
      rc=objWP.EditCut
      stash=_CLIPTEXT
      rc=objWP.CloseNoSave
      rc=objWP.ExitWordPerfect
      rc=objWP.Quit
      objWP=""
Reducing it down to just the type and the WPSpeller commands doesn't work because WP has not been made visible.
TIA!
Reply
Map
View

Click here to load this message in the networking platform