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
Hide CodeTabVisible in stiDesignerControl
To Hide the Code Tab and HTML Preview Tab you can use the following two static properties
To Disable the Message Panel you can use the following (where stiDesignerControl1 is your StiDesignerControl)
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
Thanks for your response. I’ve done that, but they are still there. Any ideal ?
Thanks.
Thanks.
Hide CodeTabVisible in stiDesignerControl
Hello,
We will check this behavior and let you know about possible patch in this topic.
Thank you.
We will check this behavior and let you know about possible patch in this topic.
Thank you.
Hide CodeTabVisible in stiDesignerControl
Hello, Huangfu.
Please use the following code if you want to close the Messages Window. Please run this code after designer has been created.
And as Brendan suggested, please run that code:
in a very beginning of your Application, e.g. in Program.cs, when none of Stimulsoft Reports.Net components had been created.
Thank you.
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();
Code: Select all
StiOptions.Designer.CodeTabVisible = false;
StiOptions.Designer.HtmlPreviewReportVisible = false;
Thank you.