Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MailMerge using Windows printer
Message
De
22/12/2004 10:20:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00970262
Message ID:
00971421
Vues:
25
>Hi Cetin
>I went to message#940960 where you have code demonstrating how to call Word.MailMerge from vfp with a Tab delimited file.
>Very clean code. The example worked "out of the box" with just a few changes (such as Table name).
>This looks like what I've been looking for for quite some time.
>Also, it looks like it can handle graphics which vfp TextMerge can not do.
>It also looks like you can Email MailMerge documents, but have to send them as an attachment if you want to preserve the formatting.
>Thank you very much, Cetin!
>Bill Wright

Oh you're welcome. Yes it can handle complex formatting. For example one of our customers use it to print out course certificates and certificates need to be beyond us graphically:) What they do is to create one template doc with merge fields (like attender's name, date - formatted in word in font they want) then select the persons to print from VFP.
Emailing also should be handled with word. Object model have it but I've never tried. For it probably I wouldn't directly use word but do like this:
-Merge as a separate doc per person and saveas HTM.
-Get HTM and put in an email body where email contenttype set to "text/html" (or send htm,rtf as attachment).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform