add databand at runtime?
Posted: Tue Aug 24, 2010 6:05 am
hi,
how can i add dynamic databand on report? can i see sample project?
thx
how can i add dynamic databand on report? can i see sample project?
thx
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
StiReport report = new StiReport();
report.Load(@"D:\Report.mrt");
Stimulsoft.Report.Components.StiDataBand DataBand1 = new Stimulsoft.Report.Components.StiDataBand();
DataBand1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.4, 19, 0.76);
DataBand1.Name = "DataBand11";
Stimulsoft.Report.Components.StiPage page1 = report.GetComponents()["Page1"] as Stimulsoft.Report.Components.StiPage;
DataBand1.Page = page1;
DataBand1.Parent = page1;
page1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {DataBand1});
report.Dictionary.Synchronize();
report.Design();