I’m trying to implement solution which allows passing different data schema to the report template. Those schema’s will change often, therefore defining concrete classes for each isn’t the best way forward. But whenever I pass an anonymous object or a dictionary containing key/value pairs it complains that properties defined in the template cannot be found on the data source object.
Is there a way to pass an object that implements an interface similar to IMailMergeDataSource that would allow dynamic data retrieval?
Alternatively a support for IDictionary<string, object> or ExpandoObject would do?