How to open report designer and select the dictionary

Stimulsoft Reports.NET discussion
Post Reply
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

How to open report designer and select the dictionary

Post 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
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

How to open report designer and select the dictionary

Post 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.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

How to open report designer and select the dictionary

Post 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
Post Reply