I want to localize dashboard for my customer.
In application asp.net core I have this:
Code: Select all
string localizationPath = Path.Combine(_hostEnvironment.WebRootPath, "Localization/it.xml");
Stimulsoft.Report.StiConfig.Load();
Stimulsoft.Report.StiConfig.LoadLocalization(localizationPath);
Stimulsoft.Report.StiOptions.Configuration.Localization = "it.xml";
Stimulsoft.Report.StiConfig.Save();
string ReportPath = Path.Combine(_hostEnvironment.WebRootPath, "Report/ListaFiliali.mrt");
StiReport report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, ReportPath));
StiSqlDatabase sqlDB = new StiSqlDatabase();
sqlDB = (StiSqlDatabase)report.Dictionary.Databases["MS SQL"];
sqlDB.ConnectionString = AppSettings.DbConnection;
report.Render(false);
return StiNetCoreViewer.GetReportResult(this, report);
In folder wwwroot I have subfolder Localization with file it.xml
Thank.