Page 1 of 1

how to control some items in stiDesignerControl?

Posted: Sat Feb 19, 2011 2:57 am
by mahboobeh
hi
i wnana use stiDesignerControl.and i want to contol it;
actully in this case i want to show dictionary tab and let user's to drag some items from dataset but don't let them to add a new datasource or a new category or columns.he just can see fileds(columns) and drag it to report.

how to control some items in stiDesignerControl?

Posted: Mon Feb 21, 2011 3:24 am
by Alex K.
Hello,

You can use the following restrictions:

Code: Select all

StiReport.Dictionary.Restrictions.Add(string name, StyDataType dataType, StiRestrictionTypes type)
for example

Code: Select all

StiReport.Dictionary.Restrictions.Add("Category", StiDataType.DataSource, StiRestrictionTypes.DenyEdit);
Thank you.