Chart localization problem
Chart localization problem
Hi,
I have a report with a chart and all the report is localized well except the chart. The chart values are decimal and always show them in english format (#.##) instead of the current culture (#,##) (spain).
The report structure is:
- PageHeader1 (strings and dates are localized correctly)
- Header1 (a band just to contain the chart)
-- Chart1 (localization fail)
- DataBand1 (strings and values are localized correctly)
Any help will be appreciated.
Regards,
Scott.
I have a report with a chart and all the report is localized well except the chart. The chart values are decimal and always show them in english format (#.##) instead of the current culture (#,##) (spain).
The report structure is:
- PageHeader1 (strings and dates are localized correctly)
- Header1 (a band just to contain the chart)
-- Chart1 (localization fail)
- DataBand1 (strings and values are localized correctly)
Any help will be appreciated.
Regards,
Scott.
Chart localization problem
Hello, Scott
Because charts are generated on the server, then the current localization is applied to them. Most probably the English culture is installed on the server. Please change the culture to the required one.
Thank you.
Because charts are generated on the server, then the current localization is applied to them. Most probably the English culture is installed on the server. Please change the culture to the required one.
Thank you.
Chart localization problem
Hello Vladimir,
My machine has the regional settings to spain and I'm setting the report culture with this code in the before print event of the report:
if (Culture=="en-US")
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
else
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("es-ES");
Culture is a string variable.
I'm running the server in my machine, so there is no english regional settings.
My application is web and the user can change localization to its current session. All the reports are localized well, except this one. As I said before, the report is localized except the chart.
Specifications:
- Windows XP
- Stimulsoft Web 2010.05.04_R2005
Regards,
Scott.
My machine has the regional settings to spain and I'm setting the report culture with this code in the before print event of the report:
if (Culture=="en-US")
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
else
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("es-ES");
Culture is a string variable.
I'm running the server in my machine, so there is no english regional settings.
My application is web and the user can change localization to its current session. All the reports are localized well, except this one. As I said before, the report is localized except the chart.
Specifications:
- Windows XP
- Stimulsoft Web 2010.05.04_R2005
Regards,
Scott.
Chart localization problem
Hello, Scott
The problem is connected with peculiarities of work of export to HTML. To fix the issue, please set the following option:
Thank you.
The problem is connected with peculiarities of work of export to HTML. To fix the issue, please set the following option:
Code: Select all
StiOptions.Engine.RenderChartAsBitmap = true;
Chart localization problem
Thanks Vladimir, works great! Now, the data in the chart is displayed well.
There is a small drawback with this solution, the chart image quality is lower and the image size is bigger (36 KB vs 59 KB).
I hope there is a fix for the localization problem in a near time.
Regards,
Scott.
There is a small drawback with this solution, the chart image quality is lower and the image size is bigger (36 KB vs 59 KB).
I hope there is a fix for the localization problem in a near time.
Regards,
Scott.
Chart localization problem
Hello,
Fix for this problem will be available in prerelease build from 17 May.
Thank you.
Fix for this problem will be available in prerelease build from 17 May.
Thank you.
Chart localization problem
Hello Jan,
Today, I downloaded the prerelease of 17 may and this issue was not fixed. I hope maybe in the next prerelease.
Regards,
Scott.
Today, I downloaded the prerelease of 17 may and this issue was not fixed. I hope maybe in the next prerelease.
Regards,
Scott.
Chart localization problem
Hello, Scott
We checked charts showing on WebViewer and everything is working correctly. To display charts the current culture of a web project will be used. We checked with the following parameters of globalization in the Web.config file:
Thank you.
We checked charts showing on WebViewer and everything is working correctly. To display charts the current culture of a web project will be used. We checked with the following parameters of globalization in the Web.config file:
Code: Select all
Chart localization problem
Hello Vladimir,
I cannot use the culture of the web project, I use the user session culture. Setting "StiOptions.Engine.RenderChartAsBitmap = true;" had worked well, but the chart doesn't look so good.
One thing, I have a framework (in a dll) below who generates the reports with the culture I want. The framework returns me the generated StiReport and I assign to the WebViewer, but I think this cannot be a problem.
I think the problem is concerned at export to HTML, as you told me before.
Regards,
Scott.
I cannot use the culture of the web project, I use the user session culture. Setting "StiOptions.Engine.RenderChartAsBitmap = true;" had worked well, but the chart doesn't look so good.
One thing, I have a framework (in a dll) below who generates the reports with the culture I want. The framework returns me the generated StiReport and I assign to the WebViewer, but I think this cannot be a problem.
I think the problem is concerned at export to HTML, as you told me before.
Regards,
Scott.
Chart localization problem
Hello again,
I made some tests to see the difference with the RenderChartAsBitmap setting. The files were obtained directly from the webviewer using the save button in the toolbar.
Results of chart localization with "StiOptions.Engine.RenderChartAsBitmap = false;"
WebViewer: Fail
Pdf: OK (WebViewer fail but saving as pdf works?)
Jpeg: OK
Bmp: OK
Png: OK
Word2007: Fail
Excel: Fail
Excel2007: Fail
PowerPoint: Fail
Html: The image of the chart is not saved with the html, makes reference to the website?
Results of chart localization with "StiOptions.Engine.RenderChartAsBitmap = true;"
WebViewer: OK
Pdf: OK (image very blurry)
Jpeg: OK (image very blurry)
Bmp: OK (image very blurry)
Png: OK (image very blurry)
Word2007: OK (image very blurry)
Excel: OK (image very blurry)
Excel2007: OK (image very blurry)
PowerPoint: OK (image very blurry)
Html: The image of the chart is not saved with the html, makes reference to the website?
I hope this could help you to find the problem.
Regards,
Scott.
I made some tests to see the difference with the RenderChartAsBitmap setting. The files were obtained directly from the webviewer using the save button in the toolbar.
Results of chart localization with "StiOptions.Engine.RenderChartAsBitmap = false;"
WebViewer: Fail
Pdf: OK (WebViewer fail but saving as pdf works?)
Jpeg: OK
Bmp: OK
Png: OK
Word2007: Fail
Excel: Fail
Excel2007: Fail
PowerPoint: Fail
Html: The image of the chart is not saved with the html, makes reference to the website?
Results of chart localization with "StiOptions.Engine.RenderChartAsBitmap = true;"
WebViewer: OK
Pdf: OK (image very blurry)
Jpeg: OK (image very blurry)
Bmp: OK (image very blurry)
Png: OK (image very blurry)
Word2007: OK (image very blurry)
Excel: OK (image very blurry)
Excel2007: OK (image very blurry)
PowerPoint: OK (image very blurry)
Html: The image of the chart is not saved with the html, makes reference to the website?
I hope this could help you to find the problem.
Regards,
Scott.