Page 1 of 1

How to remove the messages window from the designer

Posted: Wed Dec 13, 2006 10:16 am
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

How to remove the messages window from the designer

Posted: Wed Dec 13, 2006 4:43 pm
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.