Localization problem: New point in series

TeeChart for ActiveX, COM and ASP
Arieh
Newbie
Newbie
Posts: 28
Joined: Mon Feb 21, 2011 12:00 am

Localization problem: New point in series

Post by Arieh » Thu Apr 21, 2011 10:33 am

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

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Localization problem: New point in series

Post by Yeray » Fri Apr 22, 2011 8:18 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Arieh
Newbie
Newbie
Posts: 28
Joined: Mon Feb 21, 2011 12:00 am

Re: Localization problem: New point in series

Post by Arieh » Mon May 02, 2011 9:48 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Localization problem: New point in series

Post by Narcís » Mon May 02, 2011 10:02 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Arieh
Newbie
Newbie
Posts: 28
Joined: Mon Feb 21, 2011 12:00 am

Re: Localization problem: New point in series

Post by Arieh » Mon May 02, 2011 1:55 pm

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
Attachments
JpnChars.zip
(25.53 KiB) Downloaded 788 times

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Localization problem: New point in series

Post by Pep » Tue May 03, 2011 9:32 am

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 ?

Arieh
Newbie
Newbie
Posts: 28
Joined: Mon Feb 21, 2011 12:00 am

Re: Localization problem: New point in series

Post by Arieh » Tue May 03, 2011 11:58 am

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
Attachments
label.zip
(14.29 KiB) Downloaded 738 times

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Localization problem: New point in series

Post by Pep » Tue May 03, 2011 3:05 pm

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.
Attachments
result.png
result.png (47 KiB) Viewed 20971 times
JapChars.rar
(189.02 KiB) Downloaded 821 times

Arieh
Newbie
Newbie
Posts: 28
Joined: Mon Feb 21, 2011 12:00 am

Re: Localization problem: New point in series

Post by Arieh » Wed May 04, 2011 11:56 am

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

Arieh
Newbie
Newbie
Posts: 28
Joined: Mon Feb 21, 2011 12:00 am

Re: Localization problem: New point in series

Post by Arieh » Fri May 06, 2011 6:32 am

I'm still waiting for your reply. Any news?

Regards
Jürgen

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Localization problem: New point in series

Post by Yeray » Mon May 09, 2011 9:55 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Localization problem: New point in series

Post by Yeray » Tue May 10, 2011 8:59 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Arieh
Newbie
Newbie
Posts: 28
Joined: Mon Feb 21, 2011 12:00 am

Re: Localization problem: New point in series

Post by Arieh » Wed May 11, 2011 12:25 pm

Hi,
Don't forget to send me the OCX.
When approximately will the next maintenance release be available?

Thanks
Jürgen

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Localization problem: New point in series

Post by Yeray » Thu May 12, 2011 10:56 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Arieh
Newbie
Newbie
Posts: 28
Joined: Mon Feb 21, 2011 12:00 am

Re: Localization problem: New point in series

Post by Arieh » Mon May 30, 2011 7:44 am

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

Post Reply