domino1352
IS-IT--Management
I have created a connection to MSWORD to do a mail merge, I want it to print first page from tray one and second page from Papersource 2, which is a valid thing to do in a mailmerge, i.e covering letter and an invoice. but it seems that a mail merger producess only one document so only the first document gets the correct paper the balance gets printed all on Paper source 2...
the code I am using is as follows
Set WordObj = CreateObject("Word.Application")
Set wordDoc=WordObj .Documents.Add(filepath)
worddoc.MailMerge.OpenDataSource( MergeFilepath)
worddoc.MailMerge.Destination=0 worddoc.MailMerge.Execute(False)
Wordobj.PrintOut
I have set the template (document found at 'filepath') to have firstpage papersource1 and balance papersource2
has anyone had similar problems?
the code I am using is as follows
Set WordObj = CreateObject("Word.Application")
Set wordDoc=WordObj .Documents.Add(filepath)
worddoc.MailMerge.OpenDataSource( MergeFilepath)
worddoc.MailMerge.Destination=0 worddoc.MailMerge.Execute(False)
Wordobj.PrintOut
I have set the template (document found at 'filepath') to have firstpage papersource1 and balance papersource2
has anyone had similar problems?