SAP Knowledge Base Article - Public

1614094 - How to disable/hide the "SAP Crystal Reports ®" logo on the .NET Windows form viewer in Crystal Reports for Visual Studio 2010?

Symptom

  • Developing a winform application in Visual Studio 2010 using Crystal Reports for Visual Studio 2010.
  • How to disable/hide/remove the SAP Crystal Reports ® label on the winform viewer?

sapcrystallogo.png

Environment

  • Visual Studio 2010
  • Crystal Reports for Visual Studio 2010

Resolution

Solution 1

// The CrystalReportViewer has a hidden property called ShowLogo which can be modified
crystalReportViewer1.ShowLogo = false;  // Set to false to not show the logo

Solution 2

It is also possible to loop through the ToolStrip directly and hide the logo. This is an older way of hiding the logo and should only be used in existing applications.

// assuming the CrystalReportViewer is called crystalReportViewer1
// The SAP Crystal Report logo is the 18th item on the 4th control.
System.Windows.Forms.ToolStrip oToolStrip = (System.Windows.Forms.ToolStrip)crystalReportViewer1.Controls[4];
oToolStrip.Items[18].Visible = false;

Keywords

KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio