Page 1 of 1

Hide dictionary commands

Posted: Thu Oct 18, 2012 1:36 pm
by rvdroer
We have a typical SL application with a WCF service. In this we want to use the report viewer and designer.
The requirements for the designer are:
- The service determines what possible datasources there are (sends a dictionary?).
- The user cannot create a new datasource or connection.
- The user cannot modify the dictionary (save/load/delete).

Can we control the buttons that are presented to the user?

Re: Hide dictionary commands

Posted: Fri Oct 19, 2012 8:34 am
by HighAley
Hello.

Please try to set next static Option:

Code: Select all

Stimulsoft.Report.SLDesign.StiDesignerSLOptions.Dictionary.AllowModifyConnections = false;
Stimulsoft.Report.SLDesign.StiDesignerSLOptions.Dictionary.AllowModifyDataSources = false;
To control buttons you should use the Stimulsoft.Report.SLDesign.StiDesignerSLOptions class.

Thank you

Re: Hide dictionary commands

Posted: Fri Oct 19, 2012 9:10 am
by Alex K.
Hello,

The StiSLDictionaryPanelService has a set of properties that you can use to restrict access and features of the dictionary. Applying to StiConfig you can refer to the current dictionary.

If you do not find some features you need, please contact us, we will help you. We also can add the missed ones.

Thank you.