TeeChart multi-language OCX 7.0.1.3

TeeChart for ActiveX, COM and ASP
Post Reply
Todd Taylor
Newbie
Newbie
Posts: 8
Joined: Fri Aug 11, 2006 12:00 am

TeeChart multi-language OCX 7.0.1.3

Post by Todd Taylor » Tue Feb 06, 2007 4:57 pm

Hi,

I followed the instructions to install the multi-language version from the usage notes.txt, then set the language at the runtiime either like TChart1.Language=12 or TChart1.Language=laSpanish. When page is loaded on the client side, the chart editor still shows in English(default language). Can anyone help me how I can change the language at the runtime? Do you have any examples for the runtime multi-language?

Thanks and Regards,

John

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Wed Feb 07, 2007 9:47 am

Hi John

Could you try a VB aplication and tell us if the language is changing ?
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Todd Taylor
Newbie
Newbie
Posts: 8
Joined: Fri Aug 11, 2006 12:00 am

TeeChart multi-language OCX 7.0.1.3

Post by Todd Taylor » Wed Feb 07, 2007 3:06 pm

I am not using teechart for applications. I am using tee chart AX for IE7, and using VBScript to communicate with teechart.

Regards,

John

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

Post by Narcís » Wed Feb 07, 2007 3:14 pm

Hi John,

This is only to check if TeeChart7Langs.ocx is working fine in your machine so that we can discard this as an issue.

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

Todd Taylor
Newbie
Newbie
Posts: 8
Joined: Fri Aug 11, 2006 12:00 am

TeeChart multi-language OCX 7.0.1.3

Post by Todd Taylor » Wed Feb 07, 2007 4:35 pm

Below is what I did:

<SCRIPT LANGUAGE="VBScript">
sub window_onload()
on error resume next
TChart1.Language=laSpanish
sub window_onload()
on error resume next
TChart1.Language=laSpanish
FillChart()
end sub

sub FillChart()
'sets up Chart to print from IE's print option
TChart1.Environment.IEPrintWithPage=True
TChart1.RemoveAllSeries
TChart1.AddSeries( 1 )
TChart1.Series(0).Title="Fruits"
TChart1.Series(0).Clear
TChart1.Series(0).Add 100, "Apples", RGB(255,0,0)
TChart1.Series(0).Add 300, "Pears", RGB(0,255,0)
TChart1.Series(0).Add 200, "Bananas", RGB(255,255,0)
end Sub

Sub TChart1_OnDblClick()
TEditor1.Chart = TChart1
TEditor1.ShowEditor
end sub
</SCRIPT>

The Tee editor still show in English when I double click on chart. I have IE7, and TeeChart7Langs.ocx v7.013

Best Regard,
John

Todd Taylor
Newbie
Newbie
Posts: 8
Joined: Fri Aug 11, 2006 12:00 am

TeeChart multi-language OCX 7.0.1.3

Post by Todd Taylor » Wed Feb 07, 2007 4:44 pm

Hi,

Oh, I don't have any VB software installed on my machine except for C++ builder, and VC++ . Do you want me to try other languages?

Regards,

John

Todd Taylor
Newbie
Newbie
Posts: 8
Joined: Fri Aug 11, 2006 12:00 am

TeeChart multi-language OCX 7.0.1.3

Post by Todd Taylor » Thu Feb 08, 2007 8:59 pm

Hi,

I've just tested the teechart7lang.OCX which I downloaded from my alpha web site in my VB application and the language is really changed at the runtime. Below is the logic I have in the VB app:

Private Sub Form_Load()
TChart1.Language = 12 'laSpanish
TEditor1.Chart = TChart1
End Sub

Private Sub TChart1_OnDblClick()
TEditor1.ShowEditor
End Sub

So how I could fix this my IE problem...

Regards,

John

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

Post by Pep » Tue Feb 13, 2007 1:05 pm

Hi John,

yes, you're correct, it happens because seems like the Language property is a reserved word in IE and this causes that the selected language is not saved in the registry.
We've fixed this problem adding a new property Languaged to be used in these cases.
We'll post a new maintenance v7.014 on our web site soon (before end of this month), but if you need it urgently please let me know an email account where I can send the new ocx file.

Post Reply