Changing caption of application menu item

Stimulsoft Reports.NET discussion
Post Reply
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Changing caption of application menu item

Post 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
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Changing caption of application menu item

Post 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.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Changing caption of application menu item

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Changing caption of application menu item

Post 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.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Changing caption of application menu item

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Changing caption of application menu item

Post 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.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Changing caption of application menu item

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Changing caption of application menu item

Post 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.
Post Reply