>I presently run MS WORD to run a mailmerge using a dbf source file, which works fine.
>
>I want to write a foxpro program that will read each record in this dbf and based on a value in a field in that dbf, call the appropriate word document that will merge the data in that particular record into the document (and then print it). Please provide me with the code that would accomplish this, preferably using fp 2.6.
David,
Here's what I did a few days ago using VFP 5.0 to prepare a master document with lots of receipts in 2 languages. A merge was not an appropriate solution here since it would have been only capable to deal with one language at a time.
So I prepared a French template with bookmarks and another Dutch one with the same bookmarks.
Based on the language flag, I select the appropriate document, replace the bookmarks with my field values and paste the whole doc into my master doc file.
Easy and reasonnably fast (it prepares receipts at a rate of one per second on my P300).
José