1544460 - How to remove the "Main Report" tab from a Crystal report in the .NET Web Form Viewer using the Crystal Reports .NET SDK

SAP Knowledge Base Article - Public

1544460 - How to remove the "Main Report" tab from a Crystal report in the .NET Web Form Viewer using the Crystal Reports .NET SDK

Symptom

How to remove the "Main Report" tab from a Crystal Report in the .NET Web Form Viewer using the Crystal Reports .NET SDK.

Environment

  • Visual Studio 2008
  • Crystal Reports 2008 (service pack 1 and above)

Resolution

The option for removing the "Main Report" tab is only available in the .NET Web Form Viewer and not with the Windows Form Viewer.

To remove the "Main Report" tab from a .Net Web Form Crystal report viewer follow below procedure.

  1. Right click on the Crystal Reports Viewer in the designer page inside Visual Studio IDE and go to properties.
  2. Select 'HasDrilldownTabs' property and set the value to 'False'.

OR

Add following line of code before the report is assigned to the reportsource of the CrystalReportViewer.

CrystalReportViewer1.HasDrilldownTabs = false;

Keywords

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

Product

Crystal Reports 2008 V1