How to remove the messages window from the designer

Stimulsoft Reports.NET discussion
Post Reply
Markus Weiß

How to remove the messages window from the designer

Post by Markus Weiß »

I tried to integrate the report designer into a small mdi application for our "end users". How can i can i disable the messages window in the designer using code and how can i control the sort order of the tabbed windows dictionaries, properties and report tree.

Thanks for your help
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

How to remove the messages window from the designer

Post by Vital »

How can i can i disable the messages window in the designer using code
Please use following code:

Code: Select all

Stimulsoft.Report.Design.Panels.StiMessagesPanelService messages = 
				Stimulsoft.Report.Design.Panels.StiMessagesPanelService.GetService();
			messages.ServiceEnabled = false;
			
how can i control the sort order of the tabbed windows dictionaries, properties and report tree
Please use following code:

Code: Select all

Stimulsoft.Report.Design.Panels.StiPropertiesPanelService properties = 
				Stimulsoft.Report.Design.Panels.StiPropertiesPanelService.GetService();

			Stimulsoft.Report.Design.Panels.StiReportTreePanelService reportTree = 
				Stimulsoft.Report.Design.Panels.StiReportTreePanelService.GetService();

			Stimulsoft.Report.Design.Panels.StiDictionaryPanelService dictionary = 
				Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService();

			StiConfig.Services.Remove(properties);
			StiConfig.Services.Remove(reportTree);
			StiConfig.Services.Remove(dictionary);

                        //Add panels in correct order
			StiConfig.Services.Add(properties);
			StiConfig.Services.Add(reportTree);
			StiConfig.Services.Add(dictionary);
You need know that panels order stored in file DockingPanels.config. So you need disable saving of docking panels settings:

Code: Select all

StiOptions.Designer.DontSaveDockingPanelsConfig = true;

Let me know if you need any help.

Thank you.
Post Reply