Page 1 of 1

How to open report designer and select the dictionary

Posted: Tue Mar 09, 2010 1:13 am
by patwolf
Hi,

when my report designer opens the property grid is selected on the right.
I would rather that the Dictionary is selected on startup.

How can I do this please?

Thanks,
Patrick

How to open report designer and select the dictionary

Posted: Wed Mar 10, 2010 1:11 pm
by Jan
Hello Patrick,

Please check following code:

Code: Select all

Stimulsoft.Report.Design.Panels.StiDictionaryPanelService dict = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService();
            Stimulsoft.Report.Design.Panels.StiPropertiesPanelService props = Stimulsoft.Report.Design.Panels.StiPropertiesPanelService.GetService();
            Stimulsoft.Report.Design.Panels.StiReportTreePanelService reportTree = Stimulsoft.Report.Design.Panels.StiReportTreePanelService.GetService();

            Stimulsoft.Report.StiConfig.Load();
            Stimulsoft.Report.StiConfig.Services.Remove(dict);
            Stimulsoft.Report.StiConfig.Services.Remove(props);
            Stimulsoft.Report.StiConfig.Services.Remove(reportTree);

            Stimulsoft.Report.StiConfig.Services.Add(props);
            Stimulsoft.Report.StiConfig.Services.Add(dict);
            Stimulsoft.Report.StiConfig.Services.Add(reportTree);

Thank you.

How to open report designer and select the dictionary

Posted: Fri Mar 12, 2010 10:35 pm
by patwolf
Thanks Jan. This brought me the order I was looking for :):
Stimulsoft.Report.StiConfig.Services.Add(dict);
Stimulsoft.Report.StiConfig.Services.Add(props);
Stimulsoft.Report.StiConfig.Services.Add(reportTree);

All the best,
Patrick