Using Greek characters TeeChart 7

TeeChart for ActiveX, COM and ASP
Post Reply
Norcom
Newbie
Newbie
Posts: 14
Joined: Wed Feb 09, 2005 5:00 am

Using Greek characters TeeChart 7

Post by Norcom » Fri Nov 23, 2007 10:22 am

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

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

Post by Narcís » Fri Nov 23, 2007 10:32 am

Hi George,

You could try what's suggested here.
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

Norcom
Newbie
Newbie
Posts: 14
Joined: Wed Feb 09, 2005 5:00 am

Post by Norcom » Fri Nov 23, 2007 1:09 pm

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>

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

Post by Narcís » Fri Nov 30, 2007 11:35 am

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.
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

Norcom
Newbie
Newbie
Posts: 14
Joined: Wed Feb 09, 2005 5:00 am

Post by Norcom » Fri Jan 25, 2008 11:27 am

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

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

Post by Narcís » Fri Jan 25, 2008 3:23 pm

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.
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

Norcom
Newbie
Newbie
Posts: 14
Joined: Wed Feb 09, 2005 5:00 am

Post by Norcom » Mon Jan 28, 2008 9:15 am

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

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

Post by Yeray » Mon Jan 28, 2008 9:39 am

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.
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

Norcom
Newbie
Newbie
Posts: 14
Joined: Wed Feb 09, 2005 5:00 am

Post by Norcom » Thu Feb 14, 2008 11:55 am

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?

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

Post by Pep » Mon Feb 18, 2008 11:59 am

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 = ....

Post Reply