Page 1 of 1

Localize Dashboard

Posted: Tue May 11, 2021 3:56 pm
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.

Re: Localize Dashboard

Posted: Thu May 13, 2021 8:06 am
by Lech Kulikowski