A report can be built completely from code, including its data structure and layout, and then printed or shown.

Printing from code. Load and render the report, apply the printer settings, and start the print workflow from application code.
var report = new Stimulsoft.Report.StiReport();
report.regData("data", "data", dataSet);

var dataSource = new Stimulsoft.Report.Dictionary.StiDataTableSource("data", "data", "data");
dataSource.columns.add(new Stimulsoft.Report.Dictionary.StiDataColumn("Column1", "Column1", "Column1"));
report.dictionary.dataSources.add(dataSource);

var page = report.pages.getByIndex(0);
var headerBand = new Stimulsoft.Report.Components.StiHeaderBand();
var dataBand = new Stimulsoft.Report.Components.StiDataBand();

var headerText = new Stimulsoft.Report.Components.StiText();
headerText.brush = new Stimulsoft.Base.Drawing.StiSolidBrush(Stimulsoft.System.Drawing.Color.lightGreen);
headerBand.components.add(headerText);
page.components.add(headerBand);
page.components.add(dataBand);
The data source, columns, bands and text components are all created as objects and added to the report, so a fully dynamic table can be generated from data whose shape is only known at run time, then rendered and printed.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.