Russian Symbols in Legend in title

TeeChart for ActiveX, COM and ASP
Post Reply
Dunemaster
Newbie
Newbie
Posts: 6
Joined: Mon Jun 19, 2006 12:00 am
Location: Moscow
Contact:

Russian Symbols in Legend in title

Post by Dunemaster » Tue Jan 29, 2008 8:33 am

Hello!
Recently I ran into a problem with the TeeChart ActiveX 7.0.1.4.
We use TeeChart ActiveX in a webpart for Sharepoint 2007. Last week the TeeChart control on the webapt refused to display cyrillic symbols in title, axis titles and legend, replacing them with "?", when title, axis titles and legend are set programmatically

We have already faced with this problem before, and the reason was a broken web.config file.
This time, we found the modification time of web.config also corresponded to the start of the issue, but this time I was not able to trace the change causing such behaviour.

Switching to unicode version helped with the legend (It i sdisplayed correctly now), but not with the title. The the other webapp on the same server, which also uses TeeChart works perfectly fine.

Thanks in advance, hope you'll be able to help with this mystery

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

Post by Pep » Mon Feb 04, 2008 11:55 am

Hi,

to be able to show the unicode characters on this way you should code the title, using the following code to change it should work fine :
TChart1.Header.Caption = TChart1.Environment.CodeUTF8String("부동산자산 ");

In your case modifying it by : TChart1.Legend.Title.Caption = ....

Dunemaster
Newbie
Newbie
Posts: 6
Joined: Mon Jun 19, 2006 12:00 am
Location: Moscow
Contact:

Post by Dunemaster » Tue Feb 05, 2008 9:46 am

Hi, Pep.
Yes, CodeUTF8String helped (in fact, we had to write an utility to encode all our captions).

But now we have another problem:
If I enter a caption:
@U#4558414D504C45
This variant works also:
@U#4558414D504C45
EXAMPLE

But if I enter
EXAMPLE
@U#4558414D504C45

, Teechar trims the unicode part to look like U#4558414D504C45

Can it be fixed?

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

Post by Yeray » Wed Feb 06, 2008 10:22 am

Hi Dunemaster,

When the string starts with non unicode characters you will need to decode the unicode string. Here is an example:

Code: Select all

TChart1.Header.Caption = TChart1.Environment.CodeUTF8String("EXAMPLE " & TChart1.Environment.DecodeUTF8String("@U#4558414D504C45"), True)
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

Dunemaster
Newbie
Newbie
Posts: 6
Joined: Mon Jun 19, 2006 12:00 am
Location: Moscow
Contact:

Post by Dunemaster » Tue Feb 12, 2008 2:55 pm

Still, the problem persists.

I need to make a two-line caption
%DATE1%
EXAMPLE

I encode %DATE1% and add it to TeeChart

Image

Then I encode a second line (EXAMPLE) and add it to TeeChart
Image

And TeeChart has modifed the first line and now it displays incorrectly!

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

Post by Yeray » Fri Feb 22, 2008 11:32 am

Hi Dunemaster,

Could you please install the latest multilanguage-unicode version (v8.0.0.3) available at client area and try this code?

Code: Select all

  TChart1.Header.Clear
  TChart1.Header.Text.Add TChart1.Environment.CodeUTF8String(DateTime.DateValue("22/02/2008"), True)
  TChart1.Header.Text.Add TChart1.Environment.CodeUTF8String("EXAMPLE", True)
It works fine for me 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

Dunemaster
Newbie
Newbie
Posts: 6
Joined: Mon Jun 19, 2006 12:00 am
Location: Moscow
Contact:

Post by Dunemaster » Fri Feb 22, 2008 12:48 pm

1.) Somehow I TeeChart ver 8 is absent from my customer download area. What's wrong? I still can download ver 7
2.) I need to enteer text manually, not programmatically

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

Post by Narcís » Mon Feb 25, 2008 10:38 am

Hi Dunemaster,

We checked that your company holds a TeeChart Pro v7 ActiveX license so you don't have acces to TeeChart Pro v8 ActiveX.

Anyway, this is an issue which was fixed in v8 and we will try to apply this fix to v7 and send you the new ocx.
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

Post Reply