Hello,
I am using C# in visual Studio 2015.
With using Microsoft.Office.Interop.Word in the Code,
I want to mailmerge MS word template document in C# code.
With MS word 2010. (MS Word 14.0 object library)
I want to use method MailMerge.ExecuteGroup to merge datatable in group.
But I can only use Mailmerge.Excute .
Do I miss some Assembly or reference to make Executegroup possible. ?
I saw on the forum that methode executegroup most be possible some way.
Thanks any help,
Jeroen Thissen
some C# code :
Word.Application wordApp;
Word.Document wordDoc;
wordApp = new Word.Application();
wordDoc = new Word.Document();
wordDoc = wordApp.Documents.Add(ref oTemplatePath, ref oMissing, ref oMissing, ref oMissing);
DataTable table = GetDataTable();
wordDoc.MailMerge.Execute
wordDoc.MailMerge.ExecuteGroup(table); NOT possible
wordDoc.SaveAs("C:\\Result.doc");
wordDoc.Close();