Client side designer

Stimulsoft Reports.NET discussion
Post Reply
Larusso
Posts: 32
Joined: Tue May 20, 2008 9:27 am
Location: Poland

Client side designer

Post by Larusso »

I understand that there is no functionality to selectively give rights to parts of database to user in designer. Will there be one? I need to create application with designer embedded. It should only show some parts of database, some tables and even sometimes only smoe rows from table but still give functionality to create reports from such database.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Client side designer

Post by Vital »

Hello,
I understand that there is no functionality to selectively give rights to parts of database to user in designer. Will there be one? I need to create application with designer embedded. It should only show some parts of database, some tables and even sometimes only smoe rows from table but still give functionality to create reports from such database.
You can use your own dataset in report designer which you can form before. For also you can create some datasources, datarelations and connections in report dictionary and remove possibility to remove or add new items in report dictionary. So customers can use this items, but can't create new. If you need i can post you code which switch off some of gui in report designer.

Thank you.
Larusso
Posts: 32
Joined: Tue May 20, 2008 9:27 am
Location: Poland

Client side designer

Post by Larusso »

Vital wrote:Hello,
If you need i can post you code which switch off some of gui in report designer.
I would be grateful If You did. I understand that in such a case client won't be able to use query builder?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Client side designer

Post by Edward »

Hello, Larusso.

Here is the code which hides some items from the Dictionary:

StiDictionaryPanelService service =
StiDictionaryPanelService.GetService();

// EndUser Restrictions
service.ShowActionsButton = false;
service.ShowEditButton = false;
service.ShowNewButton = false;
service.ShowDeleteButton = false;
service.ShowDownButton = false;
service.ShowUpButton = false;
service.ShowSortItemsButton = false;

And also it is important that this code is to be run before the designer instance have been created. You can place it for example,
in the Program.cs file before the main form of your Application was created.

and also take a look at the DesignerManagment sample application from the standard installation of Stimulsoft Reports.Net.

If you disable buttons for creating of the DataBases and DataSources then running of the QueryBuilder would be also not possible.

Thank you.
Post Reply