Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Start WordPerfect 6.1 with VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051444
Message ID:
00051649
Views:
39
I have done this kind of thing with DDE and Corel WordPerfect 8...I decided to use DDE instead of OLE too because I was having troubles with OLE...

I would suggest avoiding the frustration, use DDE, and move on...

Joe

>>>>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
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Reply
Map
View

Click here to load this message in the networking platform