Symptom
How to disable or hide CrystalLogo from the viewer control in a windows application?
Environment
- Visual Studio 2005.
- Crystal Reports 2008 SP2.
Reproducing the Issue
Crystal report viewer tool for web-application has a property HasCrystalLogo. This option is not available in a windows application.
Resolution
Use the following code to hide or deactivate the Crystal Logo in the viewer control, in a windows application.
VB.NET:
Dim CLogo As ToolStrip = CType(CrystalReportViewer1.Controls(3), ToolStrip)
CLogo.Items(CLogo.Items.Count - 1).Visible = False
C#.NET:
ToolStrip CLogo = (ToolStrip)crystalReportViewer1.Controls[3];
CLogo.Items[CLogo.Items.Count - 1].Visible = false;
Keywords
KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To