I'm trying to dynamically create a report through a view layout, which is a custom XML definition.
I want to give the report an object as it's data source and all my data is stored through a dictionary on the class that is accessible through an indexer that returns an object. Something like below. Can I set up my the report binding with something like textbox1.Value = "=Fields["PersonID"]"? It doesn't seem to work this way and I'm confused how I would set up the binding here in this case.
I want to give the report an object as it's data source and all my data is stored through a dictionary on the class that is accessible through an indexer that returns an object. Something like below. Can I set up my the report binding with something like textbox1.Value = "=Fields["PersonID"]"? It doesn't seem to work this way and I'm confused how I would set up the binding here in this case.
public class Instance{ private Dictionary<string, object> dictionary = new Dictionary<string,object>(); public object this[string s] { get { return dictionary[s]; } set { dictionary[s] = value; } }}