Hi
I have created a template and i cannot get it to work correctly.
If I use this code, it correctly creates the test.docx document with the correct address:
Dim doc As New Document(IO.Path.Combine(Base.App.PathReports, "Envelope10.docx"))
doc.MailMerge.Execute(New String() {"Address"}, New Object() {pAddress})
doc.Save("c:\temp\test.docx")
doc = Nothing
Return True
But if I try to print it, a blank page comes out of the printer:
Dim doc As New Document(IO.Path.Combine(Base.App.PathReports, "Envelope10.docx"))
doc.MailMerge.Execute(New String() {"Address"}, New Object() {pAddress})
'doc.Save("c:\temp\test.docx")
doc.Print()
doc = Nothing
Return True
I have also attached my template.