Page 1 of 2
Localization problem: New point in series
Posted: Thu Apr 21, 2011 10:33 am
by 16658606
We are using TeeChart2010 on ASP.NET web pages. The IIS is on a Japanese Win2008 server. When the IE client is running on an English OS, we get a localization problem(question marks in tee-file). There is no problem with a Japanese IE client.
The following code is running on the web server:
TeeChart::ITChartPtr chart;
chart.CreateInstance(__uuidof(TeeChart::TChart));
// template chart is imported and saved in IIS SessionData directory
chart->Import->LoadFromStream(stream);
chart->Export->SaveToFile(sessiondatafile.c_str());
// chart header modifications with Japanese chars - OK
chart->Header->GetText()->Clear();
chart->Header->GetText()->Add("<Japanese Chars>");
// chart series null point added with Japanese chars - localization problem
chart->aSeries[0]->AddNull("<Japanese Chars>");
// chart is saved in IIS SessionData directory
chart->Export->SaveToFile(sessiondatafile.c_str());
Thanks
Jürgen
Re: Localization problem: New point in series
Posted: Fri Apr 22, 2011 8:18 am
by yeray
Hello Jürgen,
Jürgen wrote:we get a localization problem(question marks in tee-file)
I'm afraid I'm not sure to understand you. Are you getting an error message (which one if so?) or the Japanese texts aren't shown as expected?
Does the English machine show other Japanese sites correctly?
Re: Localization problem: New point in series
Posted: Mon May 02, 2011 9:48 am
by 16658606
There is no error message! The Japanese characters as specified by AddNull(...) are not shown as expected. On the other hand, Japanese characters specified in chart->Header->GetText()->Add(...) are shown correctly on the English client.
The tee-files show the problem clearly, but I'm not allowed to upload tee-files. If it helps, please grant upload permission.
Thanks
Jürgen
Re: Localization problem: New point in series
Posted: Mon May 02, 2011 10:02 am
by narcis
Hi Jürgen,
You can upload tee files compressed in a zip package. Could you also let us know the exact TeeChart build you are using?
Thanks in advance.
Re: Localization problem: New point in series
Posted: Mon May 02, 2011 1:55 pm
by 16658606
We are using TeeChart v2010.0.0.3.
The zip contains 2 tee-files and 1 png-file:
- template.tee: before adding Japanese chars
- modifications.tee: after adding Japanese chars as described previously
- TeeChart.png: shows the result after adding Japanese chars
Re: Localization problem: New point in series
Posted: Tue May 03, 2011 9:32 am
by Pep
Hi Jürgen,
we've been able to see the problem by importing your .tee file, however, I've been unable to reproudce the problem by using code to add data to the chart. It workds fine using the following ways :
Code: Select all
axTChart1.Series(0).AddlXY(0,0,"日本人",0);
axTChart1.Series(0).AddNullXY(0,0,"日本人");
Could you please let us know which code is used to add the data to the Series Chart ?
Re: Localization problem: New point in series
Posted: Tue May 03, 2011 11:58 am
by 16658606
You're right, that code is working fine. But you will get a localization problem here(screen shot attached), too, when reading the Japanese label. I don't know whether it is related to my original problem.
Code: Select all
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
AxTChart1.Import.LoadFromFile("c:\\template.tee")
AxTChart1.Series(0).AddNull("Jürgen")
AxTChart1.Series(0).AddNull("とぞたかわさき")
Dim pl0 As String, pl1 As String
pl0 = AxTChart1.Series(0).PointLabel(0) 'ok
pl1 = AxTChart1.Series(0).PointLabel(1) 'returns ?????
AxTChart1.Series(0).AddNull(pl0)
AxTChart1.Series(0).AddNull(pl1)
End Sub
End Class
The used code is already mentioned above.
Regards
Jürgen
Re: Localization problem: New point in series
Posted: Tue May 03, 2011 3:05 pm
by Pep
Hi Jürgen,
I'm surry but I cannot reproduce the problem here using the latest TeeChart v2010.0.0.3 and your code. I've just imported the your .tee file to the chart at design time and then run your code into the form load method.
I've attached the sample project I've used and also the resulted form image to a this post.
Re: Localization problem: New point in series
Posted: Wed May 04, 2011 11:56 am
by 16658606
Because I'm using VisualStudio2008 I couldn't load your solution. But I created a new project, imported the tee-file at design time and copied your code. The problem still exists!!!
Please make a suggestion, how to continue to solve my problem. Do you need more details?
Here is the exact build version from the About box: TeeChart Pro v2010.0.0.3.11109 Win32
Thanks
Jürgen
Re: Localization problem: New point in series
Posted: Fri May 06, 2011 6:32 am
by 16658606
I'm still waiting for your reply. Any news?
Regards
Jürgen
Re: Localization problem: New point in series
Posted: Mon May 09, 2011 9:55 am
by yeray
Hello Jürgen,
Excuse us for the delay with this. We haven't forgotten you. We are studying the problem and we'll be back to you asap.
Re: Localization problem: New point in series
Posted: Tue May 10, 2011 8:59 am
by yeray
Hello Jürgen,
We reproduced this problem with the latest version published (v2010.0.0.3) but we've tried to compile a new ocx with the actual sources and I can confirm that it will work fine with the next maintenance release.
I'll send the ocx that works fine for us here to the mail account you have registered in these forums.
Re: Localization problem: New point in series
Posted: Wed May 11, 2011 12:25 pm
by 16658606
Hi,
Don't forget to send me the OCX.
When approximately will the next maintenance release be available?
Thanks
Jürgen
Re: Localization problem: New point in series
Posted: Thu May 12, 2011 10:56 am
by yeray
Hello Jürgen,
I'm afraid I can't tell you an exact date for the next release to be published but we hope in the next weeks.
I've checked I sent you the ocx to the mail you have registered in this forums (kerju01@...). If you haven't received it, could you please tell us another mail account? You can send it by mail to "info at steema dot com" referencing this thread, if you don't want to publish it here.
Re: Localization problem: New point in series
Posted: Mon May 30, 2011 7:44 am
by 16658606
Hi,
as you suggested I contacted
info@steema.com last Thursday, asking for a new OCX.
But not received yet, please try again.
Thanks
Jürgen