Hi
Thanks for your inquiry. I think that you
should do this using regions. For example see attached template and the
following code.
//Create datasourse
DataTable table = new DataTable("table");
table.Columns.Add("field1");
for (int rowIndex = 0; rowIndex
< 10; rowIndex++)
{
DataRow row = table.NewRow();
row[0] = "test";
table.Rows.Add(row);
}
//Open template
Document doc = new Document(@"457_109237_raviteja\in.doc");
//Execute mail merge
doc.MailMerge.ExecuteWithRegions(table);
//Save document
doc.Save(@"457_109237_raviteja\out.doc");
I hope that this will help you.
Best regards.