ReportPartsDefinition.Title Property
Gets or sets the display title of the report. The CrystalReportPartsViewerIsDisplayTitle property must be set to True.
Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)
Syntax
'Declaration
Public Property Title As String
public string Title {get; set;}
Example
The following example verifies that the report parts definition contains non-empty title and non-empty data context.
'Declaration
Private Function VerifyReportPartsDefinition(ByVal myCrystalReportPartsViewer As CrystalReportPartsViewer) _
As Boolean
Dim myReportPartsDefinition As ReportPartsDefinition = myCrystalReportPartsViewer.ReportParts
VerifyReportPartsDefinition = myReportPartsDefinition.DataContext.Length > 0 And _
myReportPartsDefinition.Title.Length > 0
End Function
private bool VerifyReportPartsDefinition(CrystalReportPartsViewer crystalReportPartsViewer)
{
ReportPartsDefinition reportPartsDefinition = (ReportPartsDefinition)crystalReportPartsViewer.ReportParts;
return (reportPartsDefinition.DataContext.Length > 0 && reportPartsDefinition.Title.Length > 0);
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports .NET 9
See Also
Reference
ReportPartsDefinition Class
ReportPartsDefinition Members
CrystalDecisions.Web Namespace