ReportPartsDefinition.ReportPartNodes Property

Gets or sets the path to the drill down information.

Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)

Syntax

'Declaration

Public Property ReportPartNodes As CrystalDecisions.Web.ReportPartNodes
public CrystalDecisions.Web.ReportPartNodes ReportPartNodes {get; set;}

Remarks

Use this property to add the parent collection of ReportNodes containing the information representing all the levels of drill down.

Example

The following example searches for the ReportPartNode by partial name.

'Declaration

      Private Function GetReportPartNodeByPartialName(ByVal myCrystalReportPartsViewer As CrystalReportPartsViewer, _
      ByVal partialName As String) As ReportPartNode
        Dim myReportPartsDefinition As ReportPartsDefinition = myCrystalReportPartsViewer.ReportParts
        Dim i As Integer
        For i = 0 To myReportPartsDefinition.ReportPartNodes.Count
          Dim myReportPartNode As ReportPartNode = myReportPartsDefinition.ReportPartNodes.Item(i)
          If (InStr(myReportPartNode.Name, partialName) > 0) Then
            GetReportPartNodeByPartialName = myReportPartNode
            Exit For
          End If
        Next
      End Function
      private ReportPartNode GetReportPartNodeByPartialName(CrystalReportPartsViewer crystalReportPartsViewer,
        string partialName)
      {
        ReportPartsDefinition reportPartsDefinition = (ReportPartsDefinition)crystalReportPartsViewer.ReportParts;
        for (int i = 0; i < reportPartsDefinition.ReportPartNodes.Count; i++)
        {
          ReportPartNode reportPartNode = reportPartsDefinition.ReportPartNodes[i];
          if (reportPartNode.Name.IndexOf(partialName) > = 0)
          {
            return reportPartNode;
          }
        }
        return null;
      }

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

ReportPartsDefinition Class
ReportPartsDefinition Members
CrystalDecisions.Web Namespace