Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Start WordPerfect 6.1 with VFP
Message
From
25/09/1997 13:26:10
 
 
To
25/09/1997 13:09:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051444
Message ID:
00051625
Views:
33
>>>I want to start wordperfert 6.1 for windows from my vfp application
>>>and print a standard letter with some data from a table(.dbf).
>>Hi Francois.
>>
>>First you have to RUN wordperfect from VFP by using the RUN command. Then open a DDE channel using the following:
>>
>>chan = DDEInitiate("WpWin60_Macros", "Commands")
>>
>>To find out exactly the syntax to use for doing your merge printing, record a macro in Word Perfect. Then you can edit the macro and this will tell you what to to in the DDEExececute.
>>
>>Best Regards.
>>
>>Marcia
>
>Marcia,
> They could also call Wordperfect using OLE.. I know how to do this using Word 95 with Wordbasic, so I would think this is an option with Wordperfect.. This makes it easier, and a little cleaner I would think..
>
>Thanx!
>
>Tony Miller
>Vancouver, Wa
Hi Tony.

Some time ago I tried doing this with Corel Word Perfect 7. I was in touch with the people from Corel becuase I couldn't get it to work. They told me that it was a VFP problem, but I encountered the same problems with Access and VB. There may be a way to get it to work using OLE, but I wasn't smart enough to figure out how to do it. I agree with you, definitely, that it is cleaner to do it with OLE. Especially on faster computers, I found that timing was a big issue with the DDE...I occasionally would have to stick an INKEY(.2) in the code to get it to work!

Best Regards.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform