Localize Dashboard

Stimulsoft Reports.WEB discussion
Post Reply
luigi.arena
Posts: 36
Joined: Thu Feb 12, 2015 12:49 am

Localize Dashboard

Post by luigi.arena »

Hello,
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);
but not working.
In folder wwwroot I have subfolder Localization with file it.xml
Thank.
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Localize Dashboard

Post by Lech Kulikowski »

Post Reply