Hiding menu items on Ribbon

Stimulsoft Reports.NET discussion
Post Reply
peterparker55
Posts: 6
Joined: Fri Nov 19, 2021 10:13 pm

Hiding menu items on Ribbon

Post by peterparker55 »

I'm integrating Reports.NET into our point-of-sale program using COM. I'd like to restrict our end-users from loading reports from the Designer menu. I'm using the Ribbon interface. Is it possible to hide the "New" and "Open" menu selections, so our end-users have to go through our app's interface to add reports?

Thanks for any help,

-- John
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Hiding menu items on Ribbon

Post by Lech Kulikowski »

Hello John,

You can use the following options:
StiOptions.Designer.Ribbon.ShowMainMenuReportNew = false;
StiOptions.Designer.Ribbon.ShowMainMenuReportOpen = false;

Thank you.
peterparker55
Posts: 6
Joined: Fri Nov 19, 2021 10:13 pm

Re: Hiding menu items on Ribbon

Post by peterparker55 »

Thanks for the quick response!

ShowMainMenuReportOpen did hide the "Open", but ShowMainMenuReportNew did not hide the "New". I found though that ShowMainMenuNew did hide the "New", so all is good!
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Hiding menu items on Ribbon

Post by Lech Kulikowski »

Hello,

What product and version are you use?

Thank you.
peterparker55
Posts: 6
Joined: Fri Nov 19, 2021 10:13 pm

Re: Hiding menu items on Ribbon

Post by peterparker55 »

Stimulsoft.net, 2024.3.1.0
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Hiding menu items on Ribbon

Post by Lech Kulikowski »

Hello,

We need some time to investigate the issue.

Thank you.
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Hiding menu items on Ribbon

Post by Lech Kulikowski »

Hello,

We have added the following options:
//StiOptions.Designer.Ribbon.ShowMainMenuReportNew = false;
//StiOptions.Designer.Ribbon.ShowMainMenuDashboardNew = false;
//StiOptions.Designer.Ribbon.ShowMainMenuScreenNew = false;
//StiOptions.Designer.Ribbon.ShowMainMenuNew = false;
//StiOptions.Designer.Ribbon.ShowMainMenuClose = false;

Thank you.
peterparker55
Posts: 6
Joined: Fri Nov 19, 2021 10:13 pm

Re: Hiding menu items on Ribbon

Post by peterparker55 »

Excellent! I'll keep an eye out for the next update!!

Thank you!

-- John
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Hiding menu items on Ribbon

Post by Lech Kulikowski »

Hello John,

You are welcome.
Post Reply