D
Darrin
I have a document that is merged from within access; however when I go
to print the document, the document prints without the MailMerge. Can
anyone help? Here is my code:
Set WordObj = CreateObject("Word.Application")
Set dc = WordObj.Documents.Open("C:\temp.doc")
dc.Destination = wdSendToNewDocument
dc.MailMerge
dc.SuppressBlankLines
dc.Execute
dc.PrintOut
WordObj.ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
WordObj.Quit
Any suggestions?
to print the document, the document prints without the MailMerge. Can
anyone help? Here is my code:
Set WordObj = CreateObject("Word.Application")
Set dc = WordObj.Documents.Open("C:\temp.doc")
dc.Destination = wdSendToNewDocument
dc.MailMerge
dc.SuppressBlankLines
dc.Execute
dc.PrintOut
WordObj.ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
WordObj.Quit
Any suggestions?