Hide dictionary commands

Stimulsoft Reports.Silverlight discussion
Locked
rvdroer
Posts: 2
Joined: Thu Oct 18, 2012 1:12 pm

Hide dictionary commands

Post 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?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Hide dictionary commands

Post 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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Hide dictionary commands

Post 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.
Locked