Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Automation Syntax (Wordperfect VS Visual Foxpro)
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
OLE Automation Syntax (Wordperfect VS Visual Foxpro)
Divers
Thread ID:
00039010
Message ID:
00039010
Vues:
107
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
Répondre
Fil
Voir

Click here to load this message in the networking platform