Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word 97 OLE for MailMerge
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Word 97 OLE for MailMerge
Divers
Thread ID:
00091260
Message ID:
00091260
Vues:
54
I am activating a mail of a form letter which is called by VFP after a selection routine on a table creates the merge .dbf. I have gotten this far and cannot figure out the syntax for the rest.

oWord=createobject("word.basic")
oWord.appshow
oWord.fileopen("form.doc")

I then want to just tell it to mail merge to a new document and let the user take over from there. The command I tried (in additions to variations thereof) was:

oWord.MailMerge.MailMergeDestination=0 (what I understand tells it to merge to a new document.)

I get a message back saying:

Member MAILMERGE does not evaluate to an object. I have checked the Visual Basic Editor for Word and it provides no clues. Does anyone know the secret "word" that gets me past this?

TIA

Bill
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!
Répondre
Fil
Voir

Click here to load this message in the networking platform