Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
.mrt template.var report = new StiReport();
var dataSet = StiJsonToDataSetConverterV2.GetDataSetFromFile(@"Data\Demo.json");
report.RegData(dataSet);
report.Dictionary.Synchronize();Build the page structure. Add bands to the page and text components to the bands. Expressions in braces are evaluated per row:var page = report.Pages[0];
var headerBand = new StiHeaderBand { Height = 0.5, Name = "HeaderBand" };
page.Components.Add(headerBand);
headerBand.Components.Add(new StiText(new RectangleD(0, 0, 5, 0.5)) { Text = "CompanyName" });
var dataBand = new StiDataBand { DataSourceName = "Customers", Height = 0.5, Name = "DataBand" };
page.Components.Add(dataBand);
dataBand.Components.Add(new StiText(new RectangleD(0, 0, 5, 0.5)) { Text = "{Line}.{Customers.CompanyName}" });Show the result.report.Show();RegData + Dictionary.Synchronize() — register a dataset and generate matching data-source fields.StiHeaderBand / StiDataBand / StiFooterBand — the row-repeating structure of the report.{Customers.CompanyName} and {Count()} are resolved against the current row.