Page 1 of 1

Using Greek characters TeeChart 7

Posted: Fri Nov 23, 2007 10:22 am
by 9525940
Good morning,

Could someone please explain how can I set TeeChart7 to display Greek characters?
I have downloaded the Unicode cab/ocx but when trying to display a chart with Greek characters I either get a 'Wrond .tee file format' error, or in best case the graph without any greek characters visible.
The chart as is created as XML by the application and I'm using the XML import utility to show it. Using Internet Explorer 7 on WinXPPro SP2.

I also noticed that there is another ocx available marked as 'Multilanguage', but while in the description on the download page it says that it includes greek, there is no code given in the documentation that comes with it.

Thank you,
George

Posted: Fri Nov 23, 2007 10:32 am
by narcis
Hi George,

You could try what's suggested here.

Posted: Fri Nov 23, 2007 1:09 pm
by 9525940
Hi Narcis,

Thanks for replying.
Unfortunately, the way described in that thread cannot be done.
As I said, our application produces an XML file with the data, and that file is imported into a TeeChart object of an html (.asp) page, like this:
Chart = Server.CreateObject( "TeeChart.TChart" );
SeriesXMLSource = Server.CreateObject( "TeeChart.SeriesXMLSource" );
and then using the SeriesXMLSource methods.
The result is sent back as stream (Response.BinaryWrite( Chart.Export.asNative.SaveToStream( true ) );)

It's not like it's displaying question marks. It displays nothing, or produces error "Wrong .tee file format" as I already said above.

Ideas welcome...
Thanks
George
PS... Here's a sample XML code that it's being sent to TeeChart:
I also trying encoding="UTF-8" without success.
The page reports error "Wrong .tee file format"

<?xml version="1.0" encoding="ISO-8859-7"?>
<chart>
<series title="Άγνωστη" type="Bar">
<points count="3">
<point text="Millennium Bank" index="0" Y="0"/>
<point text="Μαργέλης Σπύρος" index="1" Y="2"/>
<point text="Πανελλήνια Τράπεζα" index="2" Y="1"/>
</points>
</series>
<series title="Αθήνα" type="Bar">
<points count="3">
<point text="Millennium Bank" index="0" Y="1"/>
<point text="Μαργέλης Σπύρος" index="1" Y="1"/>
<point text="Πανελλήνια Τράπεζα" index="2" Y="1"/>
</points>
</series>
</chart>

Posted: Fri Nov 30, 2007 11:35 am
by narcis
Hi Norcom,

It works fine for us here as shown in the example I've just sent you. Can you please test if it works fine at your end?

Thanks in advance.

Posted: Fri Jan 25, 2008 11:27 am
by 9525940
Hello Narcis,

I'm sorry for late reply, but I was on a long leave.
I haven't received any example. Where did you send it? Could you please send it again?
The problem still exists.

Thanks
George

Posted: Fri Jan 25, 2008 3:23 pm
by narcis
Hi George,

I sent the e-mail to your forums contact e-mail address. I resent it again. Have you received it now? Is the forums e-mail address correct?

Thanks in advance.

Posted: Mon Jan 28, 2008 9:15 am
by 9525940
Hi Narcis,

Got it now. Thanks. I see you are using a slightly different way to load the xml than the one I used.
I will try it out and see what happens.
One more question please.
Which runtime files are to be used?
Unicode? Unicode multilanguage? Multilanguage?

Thanks,
Regards,
George

Posted: Mon Jan 28, 2008 9:39 am
by yeray
Hi George,

Let me explain a little bit. While unicode version allows you to display unicode characters in a chart, multilanguage version allows you to change the language of the design-time menu. And multilanguage + unicode version does both things.

So, I think Narcis pointed you to try to use CodeUTF8String function, with unicode version (or unicode+multilanguage), to see if it works fine for you.

Posted: Thu Feb 14, 2008 11:55 am
by 9525940
Hello again,

I managed to display Greek Characters on the labels, marks etc, but I'm still unable to display Greek characters at the footer text.
I used the Chart.Footer.Font.Charset property but it didn't work.
Also tried to change the font name. Similar result.

Could you please advise which property I have to change to get Greek characters displayed in the footer?

Thanks!
George
PS How do I upload a screenshot here to show what I mean?

Posted: Mon Feb 18, 2008 11:59 am
by Pep
Hi George,

you should be able to add Greek characters to the footter by using code like this :

Code: Select all

TChart1.Header.Caption = TChart1.Environment.CodeUTF8String("부동산자산 ");
In your case modifying it by : tchart1.Footer.Caption = ....