Page 1 of 1
about StiDataRelation
Posted: Wed Dec 30, 2009 11:06 pm
by lampson
I have already set up ,but unable to load data in the code .
about StiDataRelation
Posted: Thu Dec 31, 2009 3:56 am
by Edward
Hi
Here is an example of custom registration of DataRelation from code using Demo database which you will find as a part of standard trial installation of Stimulsoft Reports.Net
StiReport report = new StiReport();
DataSet ds = new DataSet("Demo");
ds.ReadXml("D:\\demo.xml");
report.RegData(ds);
report.Dictionary.Synchronize();
StiDataRelation dataRelation = new StiDataRelation("MyRelation", report.Dictionary.DataSources["Categories"], report.Dictionary.DataSources["Products"], new System.String[]{"CategoryID"}, new System.String[] {"CategoryID"});
report.Dictionary.RegRelations();
report.Dictionary.Relations.Add(dataRelation);
report.Design();
Happy New Year!
Thank you.