Hide dictionary menu

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Hide dictionary menu

Post by Fabio Pagano »

I would like to hide or make inaccessible the dictionary menu (rounded in red in this image):

Image

Thanks.
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Hide dictionary menu

Post by Brendan »

You need to use the StiDictionaryPanelService


Something like the following:

Code: Select all

StiReport report = new StiReport();

Stimulsoft.Report.Design.Panels.StiDictionaryPanelService dService = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService();

//Hide Buttons in the Dictionary Toolbar
dService.ShowActionsButton = false;
dService.ShowNewButton = false;
dService.ShowEditButton = false;
dService.ShowDeleteButton = false;
dService.ShowSortItemsButton = false;
dService.ShowUpButton = false;
dService.ShowDownButton = false;
	
//If you Also need to Disable Right Click Context Menu in Dictionary
dService.ShowContextMenu = false;

report.Design();
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Hide dictionary menu

Post by Fabio Pagano »

Thank you.
Post Reply