Designer: How to hide "Use aliases" checkbox and set its value to false

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Designer: How to hide "Use aliases" checkbox and set its value to false

Post by Fabio Pagano »

Using 2009.3.523.0 version of 23 november 2009.

In designer i need to programmatically hide the "Use aliases" checkbox, setting its value to false (the default is true).

The checkbox is the one in red circle (in Italian):

Image

How can i do this?

Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Designer: How to hide "Use aliases" checkbox and set its value to false

Post by Jan »

Hello Fabio,

You can use following code to hide this check box:

Code: Select all

Stimulsoft.Report.Design.Panels.StiDictionaryPanelService service = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService();
service.ShowUseAliases = false;
and following code to set current state of check box:

Code: Select all

StiSettings.Load();
StiSettings.Set("StiDesignerOptions", "UseAliases", false);
StiSettings.Save();
Thank you.
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Designer: How to hide "Use aliases" checkbox and set its value to false

Post by Fabio Pagano »

A correction: the code

Code: Select all

StiSettings.Set("StiDesignerOptions", "UseAliases", false);
has not worked, so i searched in the forum and i found:

Code: Select all

StiSettings.Set("StiDesigner", "UseAliases", false);
that worked. I found it in this thread:

http://forum.stimulsoft.com/Default.aspx?g=posts&t=2701

Thank you.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Designer: How to hide "Use aliases" checkbox and set its value to false

Post by Andrew »

Hello, Fabio!

Ok! This only means that the forum is a very big manual! :)

Thank you.
Post Reply