Localizing the Viewer
Our sample projects and report templates can help you learn the basics of working with our products.Set up the dashboard viewer in .NET 6.0, load a template, and connect the component to the application.
Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
Viewer setup. Configure the viewer, load the dashboard, assign it to the component, and process the requests or events raised by the UI.
public IActionResult InitViewer()
{
var requestParams = StiAngularViewer.GetRequestParams(this);
var options = new StiAngularViewerOptions();
options.Actions.GetReport = "GetReport";
options.Localization = StiAngularHelper.MapPath(this, "Localization/de.xml");
return StiAngularViewer.ViewerDataResult(requestParams, options);
}Localization files for many languages are supplied with the product; replace de.xml with the file you need. The Angular component itself is used without changes.