Disable new data source in DataBandEditor in report designer

Stimulsoft Reports.NET discussion
Post Reply
lucia_mgv
Posts: 22
Joined: Thu Aug 23, 2012 12:37 pm
Location: Vitoria-Gasteiz (Spain)

Disable new data source in DataBandEditor in report designer

Post by lucia_mgv »

Hi,

I have a report designer and in the dictionary panel I have disabled the DataSource and DataRelation options, since I don't want the user to be able to modify the data sources or the relations of the report.

But when the user creates a new DataBand, in the DataBandEditor appears the option of create a new data source and a new relation. I was wondering how I could disable those options.

Thanks for your help,

Lucía Morales

P.D.: I attach two images where you can see the option I want to disable.
Dibujo.jpg
Dibujo.jpg (32.28 KiB) Viewed 2078 times
Dibujo2.jpg
Dibujo2.jpg (26.16 KiB) Viewed 2078 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Disable new data source in DataBandEditor in report desi

Post by HighAley »

Hello.

We have made an improvement. These buttons will be disabled too. Please, check our next prerelease build.

Thank you.
lucia_mgv
Posts: 22
Joined: Thu Aug 23, 2012 12:37 pm
Location: Vitoria-Gasteiz (Spain)

Re: Disable new data source in DataBandEditor in report desi

Post by lucia_mgv »

Hello,

I have downloaded the last prerelease build and I have check the list of changes and I couldn't find the properties to disable those options. Could you explain me how to do it.

Thank you,

Lucía Morales
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Disable new data source in DataBandEditor in report desi

Post by HighAley »

Hello.

There are no new options. You should just set next old static options:

Code: Select all

StiOptions.Designer.Panels.Dictionary.ShowRelationNewMenuItem = false;
StiOptions.Designer.Panels.Dictionary.ShowDataSourceNewMenuItem = false;
Thank you.
Post Reply