Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating WordPerfect from within VFP 7
Message
 
To
02/10/2002 15:59:48
Steve Jones
State Attorney, Third Circuit
Live Oak, Florida, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00706512
Message ID:
00708332
Views:
16
>Using something similar I can run the merge but I get nothing displayed in WordPerfect. I'm probably missing something simple, but I can't see it.
>
>Here's the code I'm using.
> oWP=createobject("WordPerfect.PerfectScript")
> oWP.MergeRun(2, "i:\wp8\notice.frm", 0, "",1, "")
>
>The merge form has a pair of GetString() commands and I do receive the dialog boxes asking for input. But nothing else appears in WordPerfect.
>
>Please help.
Steve,

Sorry for the delay but I've been away. Try the following in the command window
loWP=createobject("WordPerfect.PerfectScript")
=loWP.WPActivate()
=loWP.FileNew()
=loWP.Type("Hello World")
=loWP.Quit()
Note the "=" at the beginning of each line and the
=loWP.Quit()
at the end.

HTH
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform