Using User Data in Reports
Our sample projects and report templates can help you learn the basics of working with our products.A
Register the user data. Define its columns and row count, then wire the data event:
How it works. The report pulls values only as it renders, so a virtual data source of any size can be fed row-by-row.
StiUserData component supplies rows on demand through an event — useful when data has no ready-made source.Register the user data. Define its columns and row count, then wire the data event:
var userData = new StiUserData();
userData.Columns.AddRange(new[] {
new StiDataColumn("Name", "Name", "Name", typeof(string), null),
new StiDataColumn("Value", "Value", "Value", typeof(string), null) });
userData.Count = 5;
userData.GetData += stiUserData1_GetData;
Report.RegData("UserData", userData);StiUserData.Count— the number of rows the engine will request.GetDataevent — fired per column and row; assigne.Datafrome.ColumnName/e.Position.
How it works. The report pulls values only as it renders, so a virtual data source of any size can be fed row-by-row.