Localizing the Viewer
Unsere Beispiele der Projekte und Berichtsvorlagen helfen Ihnen, die Grundlagen der Arbeit mit unserer Software zu erlernen.This example shows how to localize the viewer. First, load scripts:
Next, apply localization:
Finally, initialize the viewer:
Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:

@using Stimulsoft.Base
@using Stimulsoft.Report
@using Stimulsoft.Report.Blazor
Next, apply localization:
<!--Report Viewer-->
<StiBlazorViewer Report="@Report" Localization="Localization/pl.xml" />
Finally, initialize the viewer:
@code
{
private StiReport Report;
protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
//Create empty report object
this.Report = new StiReport();
//Load report template
var reportBytes = await Http.GetByteArrayAsync("Reports/TwoSimpleLists.mrt");
this.Report.Load(reportBytes);
}
}Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:
