Page 1 of 1
Hide CodeTabVisible in stiDesignerControl
Posted: Tue Jun 10, 2008 4:13 am
by Huangfu
Hello Support,
I have a StiDesignerControl on my windows form, how can I hide CodeTabVisible, HtmlPreviewReportVisible and the StiMessagesPanelService from the end user ?
Thank you.
Hide CodeTabVisible in stiDesignerControl
Posted: Tue Jun 10, 2008 4:36 am
by Brendan
To Hide the Code Tab and HTML Preview Tab you can use the following two static properties
Code: Select all
StiOptions.Designer.CodeTabVisible = false;
StiOptions.Designer.HtmlPreviewReportVisible = false;
To Disable the Message Panel you can use the following (where stiDesignerControl1 is your StiDesignerControl)
Code: Select all
Stimulsoft.Report.Design.Panels.StiMessagesPanelService msgPanel =
Stimulsoft.Report.Design.Panels.StiMessagesPanelService.GetService(stiDesignerControl1);
if (msgPanel != null)
{
msgPanel.ServiceEnabled = false;
}
Hide CodeTabVisible in stiDesignerControl
Posted: Tue Jun 10, 2008 4:46 am
by Huangfu
Thanks for your response. I’ve done that, but they are still there. Any ideal ?
Thanks.
Hide CodeTabVisible in stiDesignerControl
Posted: Thu Jun 19, 2008 3:28 pm
by Vital
Hello,
We will check this behavior and let you know about possible patch in this topic.
Thank you.
Hide CodeTabVisible in stiDesignerControl
Posted: Fri Jun 20, 2008 2:24 am
by Edward
Hello, Huangfu.
Please use the following code if you want to close the Messages Window. Please run this code after designer has been created.
Code: Select all
StiMainMenuService mainMenuService = StiMainMenuService.GetService(stiDesignerControl1);
Stimulsoft.Report.Design.Panels.StiMessagesPanelService messagesPanelService = Stimulsoft.Report.Design.Panels.StiMessagesPanelService.GetService(stiDesignerControl1);
((Stimulsoft.Controls.StiDockingPanel)messagesPanelService.DockingControl.Parent).DoClose(messagesPanelService.DockingControl);
stiDesignerControl1.Refresh();
And as Brendan suggested, please run that code:
Code: Select all
StiOptions.Designer.CodeTabVisible = false;
StiOptions.Designer.HtmlPreviewReportVisible = false;
in a very beginning of your Application, e.g. in Program.cs, when none of Stimulsoft Reports.Net components had been created.
Thank you.