I am working with your demo product. The following code is how I am getting my data Source "Customers". I am using entity framework.
> wordDocDataEntities5 context = new wordDocDataEntities5();
>
> var query = from c in context.test3 select c;
>
> List<test3> customers = query.ToList();
When debugging "customers" is a listing a list of data from the database. I then pass customers into
DocumentGenerator dg = new DocumentGenerator(customers);
The variable "Result":
DocumentGenerationResult result = dg.GenerateDocument(reportTemplateStream, reportDocumentStream); if (result.HasErrors)
it is returning the following error message:
"Element binding for property Value failed: Binding error (Path='test', Source='System.Collections.Generic.List
1[[TestWordDoc.test3, TestWordDoc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'). Details: Object of type 'System.Collections.Generic.List
1[TestWordDoc.test3]' doesn't define member 'test'.."
Any ideas of what I am doing wrong?