Xbasic
A5_WORD_MERGE Function
Syntax
Result_Flag as L = a5_word_merge(C choice ,C mergedata [,C template ])
Arguments
- Result_Flag
.T. = Export succeeded, .F. = Export failed.Character
- choice
"new" = displays the Microsoft Mail Merge dialog box. "template" = requires the Template argument. Character
- mergedata
The name of a text file containing comma delimited data. Character
- template
Optional. The name of a template. Character
Description
Mailmerge into Microsoft Word. Choice = "new" or "template" for an existing template. Mergedata is a comma delimited txt fie.
Discussion
The A5_WORD_MERGE() function exports data to Microsoft Word 's Mail Merge function. The function can use an existing template or open the Microsoft Word 's Mail Merge dialog box to create a template on the fly.
Example
a5_word_merge("new", "data.txt")
Limitations
Desktop applications only.
See Also