How to remove the "Main Report" tab from a Crystal Report in the .NET Web Form Viewer using the Crystal Reports .NET SDK.
- Visual Studio 2008
- Crystal Reports 2008 (service pack 1 and above)
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.
- Right click on the Crystal Reports Viewer in the designer page inside Visual Studio IDE and go to properties.
- Select 'HasDrilldownTabs' property and set the value to 'False'.
Add following line of code before the report is assigned to the reportsource of the CrystalReportViewer.
CrystalReportViewer1.HasDrilldownTabs = false;
KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To