Page 1 of 1

Changing caption of application menu item

Posted: Fri Dec 18, 2009 7:19 am
by munich
Hello,

I would like to know if there is a way to change the caption of a menu item, e.g. "Save Report", of the application menu of ribbon designer via code. How can this be done?

I thank in advance for any help.

Regards
munich

Changing caption of application menu item

Posted: Fri Dec 18, 2009 4:44 pm
by Jan
Hello Munich,

At this moment its not possible. Please get next prerelease build (from 21 Dec). After then you can use following code:

Code: Select all

StiLocalization.Set("MainMenu", "menuFileReportSave", "TEST");
Thank you.

Changing caption of application menu item

Posted: Tue Dec 22, 2009 4:36 am
by munich
Dear Jan,

changing the caption works fine now in the prerelease from 21st December. But now the different languages disappeared in the drop down of the user interface languages!? Only the item "Default" is in the drop down. How can I bring the languages back into the drop down?

Yours
munich

Changing caption of application menu item

Posted: Tue Dec 22, 2009 10:12 am
by Edward
Hi

Please copy 'Localisation' folder with all localisation files you need into the folder with our Stimulsoft*dlls where your application stores our dlls.

This folder comes with a standard installation of our product and can be found in Demo.exe example application folder.

Thank you.

Changing caption of application menu item

Posted: Wed Dec 23, 2009 1:04 am
by munich
Dear Edward,

your last advice did not help and is a little bit confusing. The problem has to do with the prerelease from 21st December. When I roll back to the originally release Reports.Net 2009.3 the problem is gone.

At the moment I work on my development machine having fully installed Reports.Net. I never had to copy the localization folder before. This is another indication that the problem might come from prerelease from 21st December.

Do you have any further advice?

Yours
munich

Changing caption of application menu item

Posted: Wed Dec 23, 2009 3:15 am
by Edward
Hi Munich,

Sorry, the name of the folder with localization files must be 'LocaliZation' not 'LocaliSation', sorry for my mistake.

I checked this with prerelease from 21 December and language selection worked perfectly.

We did not changed the way the report engine accessing localization files

Thank you.

Changing caption of application menu item

Posted: Wed Dec 23, 2009 3:52 am
by munich
Hello Edward,

now it works. I use a solution having two projects and at first I put the localization folder into the wrong debug directory. That was my mistake. I am sorry for that.

What still is strange to me: Why do I need to copy the localization folder into the debug directory with prerelease build from December 21st but not with original installation of 2009.3? Has this to do with the different way of installing a prerelease build compared to a regular build?

I thank you for your help and have a merry Christmas.

Yours
munich

Changing caption of application menu item

Posted: Wed Dec 23, 2009 4:29 am
by Edward
Hi

No problem.

During installation we store the localization Directory in Registry too so if you did not move the installation folder, then copying of dlls into another directory and using them there will not affect the localization files as they still will be taken from the installation path.

But in case if you deploy your application and you need to ship different localization with designer, then you need to include Localization folder and localization files along with our dlls in your application.

Merry Christmas!

Thank you.