Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mail merge doesn't merge
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00338611
Message ID:
00338983
Vues:
21
Doug :

Sorry , I mean :

oWord.ActiveDocument.MailMerge.Destination = 1 && to Printer
oWord.ActiveDocument.MailMerge.Execute(.f.)
(Bad Keyboard typeing)

The .Execute is what make it work.

TIP: Open Word , Record a new macro , and make what you want to do.
After that , edit the macro and with a few (very litle) translation, you will have almost all of your VFP code.

EXAMPLE of Word VB Code (in the Macro):
Selection.TypeText Text:="My text"
VFP Translation:
oWord.ActiveDocument.Selection.TypeText("My text")

VBA and VFP are not that diferent !
I'm trying myself to learn some VB to connect to Word , Excel and Outlook.

Good luck.
Pedro
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform