@srinudhulipalla
Please check Template.docx (12.3 KB). You can use the following code do build a report upon it:
DataSet dataSet = new DataSet();
DataTable table = new DataTable();
table.TableName = "Persons";
dataSet.Tables.Add(table);
table.Columns.Add("FirstName");
table.Columns.Add("LastName");
table.Rows.Add("John", "Doe");
table.Rows.Add("Jane", "Doe");
Document document = new Document("Template.docx");
new ReportingEngine().BuildReport(document, dataSet, "ds");
document.Save("Template Out.docx");
I am afraid, this is a matter of ADO.NET classes’ usage, so it is out of LINQ Reporting Engine documentation scope. However, the approach itself is straightforward: If access by name is impossible for your scenario, you can use access by index. The engine provides an ability to access public members of ADO.NET classes in template expressions as well.