Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
export class UsingReportVariablesInCode {
report = new Stimulsoft.Report.StiReport();
constructor() {
this.report.loadFile("Reports/Variables.mrt");
this.report.setVariable("Name", "Andrew");
this.report.setVariable("Sex", true);
this.report.setVariable("BirthDay", Stimulsoft.System.DateTime.fromString("10.10.2010"));
}
}
// template: <sti-viewer [report]="report"></sti-viewer>report.setVariable(name, value) — assign each template variable by name before the viewer renders it.Stimulsoft.System.DateTime.fromString — build a date value for DateTime variables.<sti-viewer>, so the rendered document reflects the application's state.