Control Page Creation/Removal/Name in Designer

Stimulsoft Reports.NET discussion
Post Reply
ReinholdM
Posts: 2
Joined: Sat Sep 26, 2009 2:38 pm

Control Page Creation/Removal/Name in Designer

Post by ReinholdM »

Hello,

we need to limit the number of pages per report a user can create in the designer. Furthermore we'd like to control the naming of newly created pages.

Is this possible? What would be the best way? (Event BeforePageCreation? Properties Min/MaxPages? CustomComponent?)

Thanks in advance!

Reinhold
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Control Page Creation/Removal/Name in Designer

Post by Andrew »

Hello,

Unfortunately, it is impossible to limit the number of pages in the designer. It is only possible to limit the number of rendered pages.

Thank you.
ReinholdM
Posts: 2
Joined: Sat Sep 26, 2009 2:38 pm

Control Page Creation/Removal/Name in Designer

Post by ReinholdM »

Is it possible to disable all page-functions (add, duplicate, remove, page setup) and insert a custom dialog to the toolbar/menu (like "PagesManager") which adds, removes and renames pages?

Thank you!
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Control Page Creation/Removal/Name in Designer

Post by Jan »

Hello,

Something like this:

Code: Select all

Stimulsoft.Report.Design.Toolbars.StiStandardToolbarService service = Stimulsoft.Report.Design.Toolbars.StiStandardToolbarService.GetService();
service.ShowPageNew = false;
service.ShowPageDelete = false;
service.ShowPageSetup = false;
service.ShowFormNew = false;

service.AddToolButton("test", delegate{MessageBox.Show("Test");});
Thank you.
Post Reply