Page 3 of 3

How to switch interface language of DesignerControl by code

Posted: Wed Sep 05, 2007 2:06 am
by joero
Thanks Fabio and Edward!

I'm looking forward to this release.

How to switch interface language of DesignerControl by code

Posted: Wed Sep 05, 2007 4:26 am
by Fabio Pagano
I have tested the following code with new 2007.2 official version, and "seems" to work (i have to do a more hard testing anyway), this sets Italian language where the Localization file "it.xml" is in the designer directory, not in "Localization" subfolder, and menu "Select UI Interface" is not visible:

Code: Select all

Dim designer As New Stimulsoft.Report.Design.StiDesigner
        MainMenuService = Stimulsoft.Report.Design.StiMainMenuService.GetService(designer)
        Stimulsoft.Report.StiOptions.Configuration.DirectoryLocalization = My.Application.Info.DirectoryPath
        MainMenuService.SetLocalization("it.xml")

How to switch interface language of DesignerControl by code

Posted: Wed Sep 05, 2007 4:50 am
by Edward
Ok, your code is correct when "it.xml" is placed in the Application folder.

If "Localization" folder is created in the same directory and "it.xml" is there then simply remove the following command:

Code: Select all

Stimulsoft.Report.StiOptions.Configuration.DirectoryLocalization = My.Application.Info.DirectoryPath
And your code will work.

Thank you.