This message serves for Google indexing. It only includes the first message of each thread from technical forums. To see the entire thread, the solutions and the technical content related to each message, you need to log in by going to the main page. This can be done at http://www.universalthread.com. If you do not have an account, we encourage you to create one now and start participating in Microsoft .NET and SQL Server related technology forums, just to name a few. Our database contains nearly two millions valuable high end technical messages. Thanks for the generous contribution to everyone who participated on the site so far, including MVP, Microsoft employees and many other well known contributors. The valuable content of the Universal Thread has created a history of 16 years of high end technical content which has helped many consultants, developers and many others in the industry on a daily basis. The site also offers a subscription option that greatly enhances your site experience.


View message
From08/07/1997 18:12:54
Patrick Keating #058967
Atlanta, Georgia, United States
To  
All


Is anybody trying to use OLE Automation between VFP and Wordperfect? I'm trying to get Wordperfect to fire up, load a particular document, and do a mail merge into a new workspace. The following almost works until it comes to the MergeRun statement:

LetterFile="D:\wpress\Letters\letter1A.frm"
MergeFile="D:\wpress\Letters\letter1A.dat"

oWP=createobject("Wordperfect.PerfectScript")
result=oWP.FileOpen(LetterFile)
result=oWP.MergeDataFile(MergeFile)
result=oWP.MergeSelect(0)
result=oWP.MergeRun(0,"",2,MergeFile,1)
result=oWP.Quit
release oWP

Can anyone help me with the syntax of the MergeRun line? (What it is supposed to do is merge the current document-- loaded with the FileOpen line-- with the MergeFile into a new work space.) Any help or suggestions would be appreciated.

Pat Keating