Page 1 of 1
TeeChart multi-language OCX 7.0.1.3
Posted: Tue Feb 06, 2007 4:57 pm
by 9532180
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
Posted: Wed Feb 07, 2007 9:47 am
by 9348258
Hi John
Could you try a VB aplication and tell us if the language is changing ?
TeeChart multi-language OCX 7.0.1.3
Posted: Wed Feb 07, 2007 3:06 pm
by 9532180
I am not using teechart for applications. I am using tee chart AX for IE7, and using VBScript to communicate with teechart.
Regards,
John
Posted: Wed Feb 07, 2007 3:14 pm
by narcis
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.
TeeChart multi-language OCX 7.0.1.3
Posted: Wed Feb 07, 2007 4:35 pm
by 9532180
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
TeeChart multi-language OCX 7.0.1.3
Posted: Wed Feb 07, 2007 4:44 pm
by 9532180
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
TeeChart multi-language OCX 7.0.1.3
Posted: Thu Feb 08, 2007 8:59 pm
by 9532180
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
Posted: Tue Feb 13, 2007 1:05 pm
by Pep
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.