Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Perfect Woes
Message
De
01/09/1999 15:43:12
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Word Perfect Woes
Divers
Thread ID:
00260309
Message ID:
00260309
Vues:
54
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!
Répondre
Fil
Voir

Click here to load this message in the networking platform