Designer functionality

Stimulsoft Reports.NET discussion
Post Reply
Alex Horn
Posts: 11
Joined: Mon Jun 12, 2006 3:17 am

Designer functionality

Post by Alex Horn »

Hi!

How do i limit the funtionality of the Report designer at runtime?

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Designer functionality

Post by Edward »

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();
Alex Horn
Posts: 11
Joined: Mon Jun 12, 2006 3:17 am

Designer functionality

Post by Alex Horn »


How i can hide Event tab in properties panel?

Thanks.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Designer functionality

Post by Vital »

Alex wrote: How i can hide Event tab in properties panel?

Thanks.
Use following code:

StiConfig.Load();

StiOptions.Designer.ShowEventsTab = false;

StiConfig.Save();

Post Reply