Thank you for additional information. Your code works without any issues on my side. I think, you should also make sure that column names in your data source match merge field names in your template. Could you please provide me your sample data source? Or just create simple console application, which I can run on my side and reproduce the problem.
Best regards,
Thank you for additional information. In your template document you specified the table name as “KeyRisk” but in you code you specified the table name as “KeyRiskAreas”. They should be the same
DataTable table = new DataTable("KeyRisk");
table.Columns.Add("Rating");
table.Columns.Add("Summary");
table.Columns.Add("Issues");
Please see the following link
hurrayyyyy it workeddddddd thanx a lot!!! i didnt know tht the table name and MergeField table name should be the same and had been struggling for some time… appreciate ur valuable help… thanx alot once again!!