Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
import { Component } from "@angular/core";
import { Viewer, Stimulsoft } from "stimulsoft-dashboards-js-angular/viewer";
@Component({
imports: [Viewer],
template: `<sti-viewer [report]="report"></sti-viewer>`
})
export class Example {
report: Stimulsoft.Report.StiReport;
constructor() {
this.report = new Stimulsoft.Report.StiReport();
this.report.loadFile("Dashboards/Variables.mrt");
this.report.setVariable("Name", "Andrew");
this.report.setVariable("Sex", true);
this.report.setVariable("BirthDay", Stimulsoft.System.DateTime.fromString("10.10.2010"));
}
}report.setVariable(name, value) — assign each template variable by name before the viewer renders it.Stimulsoft.System.DateTime.fromString — build a date value for date variables.