Localizing the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.The viewer interface can be shown in different languages by pointing it to a localization file through the component parameter.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
Viewer setup. Configure the viewer, load the report, assign it to the component, and process the requests or events raised by the UI.
<StiBlazorViewer Report="@Report" Localization="Localization/pl.xml" />
@code {
private StiReport Report;
protected override void OnInitialized()
{
this.Report = new StiReport();
this.Report.Load("Reports/TwoSimpleLists.mrt");
}
}The Localization parameter loads the given .xml file and switches the whole viewer interface to that language. Localization files ship with the product and can be edited or created for any language.