作者:mayz 来源:慧都控件网 浏览:Loading... 日期:2012-10-12
问题描述:
如何改变StimulsoftReports.Net中WinForms设计器默认面板布局
问题解答:
要更改StimulsoftReports.Net WinForms设计器默认的面板布局,只需在services container中更改即可,请看下面的示例:
[C#]
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(dict);
Stimulsoft.Report.StiConfig.Services.Add(props);
Stimulsoft.Report.StiConfig.Services.Add(reportTree);
Tag标签:.Net报表 Stimulsoft Reports.Net