Using Greek characters TeeChart 7
Using Greek characters TeeChart 7
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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 |
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>
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>
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
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?
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?
Hi George,
you should be able to add Greek characters to the footter by using code like this :
In your case modifying it by : tchart1.Footer.Caption = ....
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("부동산자산 ");
Pep Jorge
http://support.steema.com
http://support.steema.com