>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