AreaFormat.EnableHideForDrillDown Property

Gets or sets hide for drill down option.

Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)



Public Overrideable Property EnableHideForDrillDown As Boolean
public virtual bool EnableHideForDrillDown {get; set;}


This example shows how to hide an area of a report according to the Area.Name property.


  Private Sub HideAreaByName(ByVal myReportDocument As ReportDocument, ByVal areaName As String)
    Dim myReportDefinition As ReportDefinition
    myReportDefinition = myReportDocument.ReportDefinition()

    Dim myAreas As Areas
    myAreas = myReportDefinition.Areas()

    Dim i As Integer
    For i = 0 To myAreas.Count
      Dim myArea As Area
      myArea = myAreas.Item(i)
      If myArea.Name = areaName Then
        Dim myAreaFormat As AreaFormat = myArea.AreaFormat
        myAreaFormat.EnableHideForDrillDown = True
      End If
  End Sub
  private void HideAreaByName(ReportDocument reportDocument, String areaName)
    ReportDefinition myReportDefinition = reportDocument.ReportDefinition;
    Areas areas = myReportDefinition.Areas;

    for (int i=0; i < areas.Count; i++)
      Area area = areas[i];
      if (area.Name == areaName)
        AreaFormat areaFormat = area.AreaFormat;
        areaFormat.EnableHideForDrillDown = true;

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also


AreaFormat Class
AreaFormat Members
CrystalDecisions.CrystalReports.Engine Namespace