Page 1 of 1

Russian Symbols in Legend in title

Posted: Tue Jan 29, 2008 8:33 am
by 9531615
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

Posted: Mon Feb 04, 2008 11:55 am
by Pep
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 = ....

Posted: Tue Feb 05, 2008 9:46 am
by 9531615
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?

Posted: Wed Feb 06, 2008 10:22 am
by yeray
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)

Posted: Tue Feb 12, 2008 2:55 pm
by 9531615
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!

Posted: Fri Feb 22, 2008 11:32 am
by yeray
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.

Posted: Fri Feb 22, 2008 12:48 pm
by 9531615
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

Posted: Mon Feb 25, 2008 10:38 am
by narcis
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.