Hi!
How do i limit the funtionality of the Report designer at runtime?
Thanks.
Designer functionality
Designer functionality
To limit the functionality of the Report designer at runtime please use the following code:
StiReport report = new StiReport();
StiConfig.Load();
// this service controls MainMenu of Designer
StiMainMenuService serviceMenu = StiMainMenuService.GetService();
serviceMenu.ShowFileFormNew = false;
serviceMenu.ShowFilePageNew = false;
// this service controls ToolBar of Designer
StiStandardToolbarService serviceToolbar = StiStandardToolbarService.GetService();
serviceToolbar.ShowPageNew = false;
serviceToolbar.ShowFormNew = false;
report.Design();
StiReport report = new StiReport();
StiConfig.Load();
// this service controls MainMenu of Designer
StiMainMenuService serviceMenu = StiMainMenuService.GetService();
serviceMenu.ShowFileFormNew = false;
serviceMenu.ShowFilePageNew = false;
// this service controls ToolBar of Designer
StiStandardToolbarService serviceToolbar = StiStandardToolbarService.GetService();
serviceToolbar.ShowPageNew = false;
serviceToolbar.ShowFormNew = false;
report.Design();
Designer functionality
How i can hide Event tab in properties panel?
Thanks.
Designer functionality
Use following code:Alex wrote: How i can hide Event tab in properties panel?
Thanks.
StiConfig.Load();
StiOptions.Designer.ShowEventsTab = false;
StiConfig.Save();