You seem to be the VFP2Word Wizard :) so here it goes.
I would like to close the original template file after the merge file have been created. Right now, when Word shows, there are 2 documents (new template file and mail merge created document) open.
code snipplet below:
WITH oWordDocument
.FileNew(lcTemplate)
.MailMergeOpenDataSource(cDataFile,,,,,,,,,,,cDSN,cSQLStatement,1)
.MailMergeToDoc
.AppShow
ENDWITH
Any suggestions? TIA.
It's "my" world. You're just living in it.