P
Paul Ruedisueli
Hello,
I am creating an application that uses word templates and a database for
mail merge.
If the template used has Fill-in fields all the menu's and toolbars are gone
after when i activate Word.
This is the code i use:
Dim vlobjWord As New Microsoft.Office.Interop.Word.Application
vlobjWord.Documents.Open(vlcFileName)
vlobjWord.ActiveDocument.Activate()
vlobjWord.ActiveDocument.MailMerge.OpenDataSource(vlcTempDir &
"\mailing_records.mdb")
vlobjWord.ActiveDocument.MailMerge.Destination =
Microsoft.Office.Interop.Word.WdMailMergeDestination.wdSendToNewDocument
vlobjWord.ActiveDocument.MailMerge.Execute()
vlobjWord.Documents(vlobjWord.Documents.Count).Close(False)
vlobjWord.Visible = True
Please assist.
I am creating an application that uses word templates and a database for
mail merge.
If the template used has Fill-in fields all the menu's and toolbars are gone
after when i activate Word.
This is the code i use:
Dim vlobjWord As New Microsoft.Office.Interop.Word.Application
vlobjWord.Documents.Open(vlcFileName)
vlobjWord.ActiveDocument.Activate()
vlobjWord.ActiveDocument.MailMerge.OpenDataSource(vlcTempDir &
"\mailing_records.mdb")
vlobjWord.ActiveDocument.MailMerge.Destination =
Microsoft.Office.Interop.Word.WdMailMergeDestination.wdSendToNewDocument
vlobjWord.ActiveDocument.MailMerge.Execute()
vlobjWord.Documents(vlobjWord.Documents.Count).Close(False)
vlobjWord.Visible = True
Please assist.