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
Russian Symbols in Legend in title
-
- Newbie
- Posts: 6
- Joined: Mon Jun 19, 2006 12:00 am
- Location: Moscow
- Contact:
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 = ....
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 = ....
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 6
- Joined: Mon Jun 19, 2006 12:00 am
- Location: Moscow
- Contact:
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?
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?
Hi Dunemaster,
When the string starts with non unicode characters you will need to decode the unicode string. Here is an example:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 6
- Joined: Mon Jun 19, 2006 12:00 am
- Location: Moscow
- Contact:
Hi Dunemaster,
Could you please install the latest multilanguage-unicode version (v8.0.0.3) available at client area and try this code?
It works fine for me here.
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)
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 6
- Joined: Mon Jun 19, 2006 12:00 am
- Location: Moscow
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |