Page 1 of 1

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

Posted: Thu Mar 04, 2010 8:15 am
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.

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

Posted: Thu Mar 04, 2010 4:12 pm
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.

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

Posted: Sat Mar 06, 2010 7:45 am
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.

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

Posted: Sat Mar 06, 2010 11:12 am
by Andrew
Hello, Fabio!

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

Thank you.