Hiding all panels in designer leads to exception

Stimulsoft Reports.NET discussion
Post Reply
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Hiding all panels in designer leads to exception

Post by munich »

I hide all panels in designer using the following code:

Code: Select all

Stimulsoft.Report.Design.Panels.StiPropertiesPanelService propPanel = Stimulsoft.Report.Design.Panels.StiPropertiesPanelService.GetService();
propPanel.ServiceEnabled = false;

Stimulsoft.Report.Design.Panels.StiDictionaryPanelService dictPanel = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService();
dictPanel.ServiceEnabled = false;

Stimulsoft.Report.Design.Panels.StiMessagesPanelService messPanel = Stimulsoft.Report.Design.Panels.StiMessagesPanelService.GetService();
messPanel.ServiceEnabled = false;

Stimulsoft.Report.Design.Panels.StiReportTreePanelService treePanel = Stimulsoft.Report.Design.Panels.StiReportTreePanelService.GetService();
treePanel.ServiceEnabled = false;
I open the designer via StiReport.Design method. Even the message panel should not be visible a certain rest of it is visible on the bottom of the designer. In the lower left corner there is a very small dark gray dot on that rest of the message panel.

Here is a screen shot that shows this dark gray dot marked with a red rectangle:
Image

When you move the mouse over that dark gray dot you receive the following exception:

"Bar.Items collection must contain at least one visible DockContainerItem object so auto-hide functionality can function properly."

This is the stack trace:
bei Stimulsoft.Controls.Win.DotNetBar.AutoHidePanel.SelectPanel(Int32 x, Int32 y)
bei Stimulsoft.Controls.Win.DotNetBar.AutoHidePanel.TimerTick(Object sender, EventArgs e)
bei System.Windows.Forms.Timer.OnTick(EventArgs e)
bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

What do I have to do to hide this rest of the message panel that may cause the described exception?

I thank very much in advance for any help.

Yours
munich
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Hiding all panels in designer leads to exception

Post by Jan »

Hello,

Problem with exceptions solved. Please check next prerelease build. Also if you want hide bottom panel please clear designer config information from:

c:\Document and Settings\{User Name}\Local Settings\ApplicationData\Stimulsoft

(path depend from OS)

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Hiding all panels in designer leads to exception

Post by munich »

Dear Jan,

can you please tell me what file you mean and what is meant by "clear designer config information" exactly?

I thank you very much for your help in advance.

Yours
munich
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hiding all panels in designer leads to exception

Post by Edward »

Hi

That means that you need to delete files which contains configuration settings.

These files are located in Windows 7 in th efollowing path:
\Users\"User Name"\AppData\Local\Stimulsoft
or in WinXP:
Document and Settings\{User Name}\Local Settings\ApplicationData\Stimulsoft

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Hiding all panels in designer leads to exception

Post by munich »

Dear Edward,

I only delete the file 'RibbonDesignerDockingPanels.config' in the mentioned path. By this the empty panel disappears.

I thank you very much for your help. Now it looks fine.

Yours
munich
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Hiding all panels in designer leads to exception

Post by Jan »

Hello,

Please contact us if you need any help.

Thank you.
Post Reply