when i use XML file all relations are working file. please find an exampls with attachment.
But with Code all relations are fail. Code I use :
Code: Select all
StiReport report1 = new StiReport();
report1.Load(templatePath);
DataSet ds = new DataSet();
DataReportFunction(ref ds);
// ds.Relations.Add("Prod_Comp_Info",ds.Tables["P"].Columns["productid"], ds.Tables["Child"].Columns["productid"]);
report1.Dictionary.DataSources.Clear();
report1.RegData(ds);
report1.Dictionary.Synchronize();
report1.Compile();
ds.Dispose();