Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
@Component({
imports: [Viewer],
template: `
<select (change)="update($event.target)">
<option [value]="'en-US'">English</option>
<option [value]="'de-DE'">Deutsch</option>
</select>
<sti-viewer [report]="report" [options]="viewerOptions"></sti-viewer>`
})
export class Example {
report: Stimulsoft.Report.StiReport;
viewerOptions = new Stimulsoft.Viewer.StiViewerOptions();
update(e: any) {
var culture = e.value;
Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("Localizations/" + culture.substring(0, 2) + ".xml");
this.report = new Stimulsoft.Report.StiReport();
this.report.loadFile("Dashboards/Globalization.mrt");
this.report.culture = culture;
}
constructor() { this.update({ value: "en-US" }); }
}StiLocalization.setLocalizationFile(path) — load the UI language for the chosen culture.report.culture — set the data/format culture so numbers and dates format correctly.