using word.basics in previous version of word, the below work
msword := createoleobject('word.basic');
try
MSWord.chdir(dirname);
MSWord.FileOpen(dirname+lettername );
msword.mailmergetodoc;
msword.fileprintsetup(Printer.Printers[Printer.PrinterIndex]);
MsWord.Fileprint(NumCopies:=Copies);
MsWord.FileCloseAll(2);
I now get
The Mailmergedocto command is not available because the document is not a
mail merge main document
Doug Robbins - 15 Feb 2005 23:31 GMT
I suggest that you look up the mailmerge item in the VBA help file. You
will find examples there of how to do it using Visual Basic

Signature
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
> using word.basics in previous version of word, the below work
>
[quoted text clipped - 11 lines]
> The Mailmergedocto command is not available because the document is not a
> mail merge main document
KZeeh - 08 Mar 2005 19:17 GMT
Did you find a solution to this? I was told to instantiate Word.Application
instead of word.basic, but I am unsure of the commands. Please let me know
if you found a way to make this work. Thank you.
> using word.basics in previous version of word, the below work
>
[quoted text clipped - 11 lines]
> The Mailmergedocto command is not available because the document is not a
> mail merge main document