Page 1 of 1

Hide dictionary menu

Posted: Mon Aug 20, 2007 5:28 am
by Fabio Pagano
I would like to hide or make inaccessible the dictionary menu (rounded in red in this image):

Image

Thanks.

Hide dictionary menu

Posted: Mon Aug 20, 2007 6:22 am
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();

Hide dictionary menu

Posted: Mon Aug 20, 2007 1:07 pm
by Fabio Pagano
Thank you.