I need a working example for HTML5 localization. I found an incomplete example (better to say some lines of code) but I need to see it as a working example.
Best regards,
dikan
HTML5 Localization
-
- Posts: 6344
- Joined: Tue Mar 20, 2018 5:34 am
Re: HTML5 Localization
Hello,
Please check the following article:
https://stimulsoft.zendesk.com/hc/en-us ... Reports-JS
Thank you.
Please check the following article:
https://stimulsoft.zendesk.com/hc/en-us ... Reports-JS
Thank you.
Re: HTML5 Localization
I followed your link and it does not help me.
I have the following code inside html page and report is working but only in English what is not preferable language in Serbia:
function Start() {
Stimulsoft.Base.StiLicense.loadFromFile("license.key");
var report = Stimulsoft.Report.StiReport.createNewReport();
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile("localization/sr.xml", false, "Srpski
report.loadFile("REPORTS/obavezeSkoro.mrt");
var dataSet = new Stimulsoft.System.Data.DataSet("obaveze");
dataSet.readJsonFile("obaveze.json");
report.dictionary.databases.clear();
report.regData("obaveze","obaveze", dataSet);
report.dictionary.variables.getByName("I_ODDAT").valueObject = "2020/01/01";
report.dictionary.variables.getByName("I_DODAT").valueObject = "2050/12/31";
var options = new Stimulsoft.Viewer.StiViewerOptions();
options.appearance.fullScreenMode = true;
var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.report = report;
viewer.renderHtml("viewerContent");
}
Please feel free to correct my code to display Serbian language by default.
Regards,
dikan
I have the following code inside html page and report is working but only in English what is not preferable language in Serbia:
function Start() {
Stimulsoft.Base.StiLicense.loadFromFile("license.key");
var report = Stimulsoft.Report.StiReport.createNewReport();
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile("localization/sr.xml", false, "Srpski
report.loadFile("REPORTS/obavezeSkoro.mrt");
var dataSet = new Stimulsoft.System.Data.DataSet("obaveze");
dataSet.readJsonFile("obaveze.json");
report.dictionary.databases.clear();
report.regData("obaveze","obaveze", dataSet);
report.dictionary.variables.getByName("I_ODDAT").valueObject = "2020/01/01";
report.dictionary.variables.getByName("I_DODAT").valueObject = "2050/12/31";
var options = new Stimulsoft.Viewer.StiViewerOptions();
options.appearance.fullScreenMode = true;
var viewer = new Stimulsoft.Viewer.StiViewer(options, "StiViewer", false);
viewer.report = report;
viewer.renderHtml("viewerContent");
}
Please feel free to correct my code to display Serbian language by default.
Regards,
dikan
-
- Posts: 6344
- Joined: Tue Mar 20, 2018 5:34 am
Re: HTML5 Localization
Hello,
You should add set method.
Thank you.
You should add set method.
Thank you.
- Attachments
-
- Screenshot 2023-05-17 114559.png (201.63 KiB) Viewed 8875 times
Re: HTML5 Localization
Thank you. Now I have working example...
Best regards,
dikan
Best regards,
dikan
-
- Posts: 6344
- Joined: Tue Mar 20, 2018 5:34 am
Re: HTML5 Localization
Hello,
You are welcome.
You are welcome.