i have the report and the databand there. I need to load the report programmatically and add a generated dataset as a datasource to the databand.
Can someone provide a sample code for this?..
for now i do the following:
StiReport report = null;
if (!File.Exists(reportDllName))
{
report = new StiReport();
report.Load(reportName);
report.Compile(reportDllName);
}
else
{
report = StiReport.GetReportFromAssembly(reportDllName);
}
((StiText)report["txtFullName"]).SetText(personRow.FullName);
......
...... // then i have dataset ds and do the following:
report.RegData("Addresses",ds);
report.Dictionary.Synchronize();
((StiDataBand)report["DataBandAddressInfo"]).DataSourceName = "Addresses";
