ReportDocument.Subreports Property
Subreports. Gets the Subreports object.
Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)
Syntax
'Declaration
Public Overrideable ReadOnly Property Subreports As CrystalDecisions.CrystalReports.Engine.Subreports
public virtual CrystalDecisions.CrystalReports.Engine.Subreports Subreports {get;}
Example
This example returns the number of subreports in a report.
'Declaration
Private Function GetSubreportCount(ByVal myReportDocument As ReportDocument) As Integer
GetSubreportCount = myReportDocument.Subreports.Count
End Function
private int GetSubreportCount(ReportDocument reportDocument)
{
return reportDocument.Subreports.Count;
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports .NET 10
See Also
Reference
ReportDocument Class
ReportDocument Members
CrystalDecisions.CrystalReports.Engine Namespace