I am attempting to do a mail merge and send the resulting document directly to the printer. I noticed in the help file that I must use editor.Memo.PrintPages 1,99999 (since I am using VB) and am trying to use this with BeginPrint and EndPrint. What I have found is that the document does get printed BUT any lines that have merge fields on them are blank. If I merge to Memo2 and then do a Memo2.PrintPages 1, 99999 it prints fine. I'm possibly printing over 5,000 pages so I don't want to have to merge to a new document first and then print.
Sample code:
editor.BeginPrint "filename"
Do while not recordset.eof
editor.Memo.MergeText ""
editor.Memo.PrintPages 1, 99999
recordet.MoveNext
Loop
editor.EndPrint
Thank you,
Heather