CrystalReportPartsViewer.ReportParts Property
Gets or sets the list of report parts to be viewed in the CrystalReportPartsViewer control.
Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)
Syntax
'Declaration
Public Property ReportParts As Object
public object ReportParts {get; set;}
Remarks
The list of report parts can be defined using the ReportPartsDefinition class.
The initial report parts can be set in the report file (*.rpt) through the Report Options dialog box. In Crystal Reports click File menu and then click Report Options. In Visual Studio, right-click the report, click Report and then click Report Options.
See the ReportPartsDefinition class for an example of how to add report parts to a CrystalReportPartsViewer control.
Example
This example shows how to set report parts for the CrystalReportPartsViewer.
'Declaration
Private Sub SetReportParts(ByVal myReportDataContext As String)
Dim myReportPartsDefinition As ReportPartsDefinition = New ReportPartsDefinition
myReportPartsDefinition.DataContext = myReportDataContext
CrystalReportPartsViewer.ReportParts = myReportPartsDefinition
End Sub
private void SetReportParts(String reportDataContext)
{
ReportPartsDefinition reportPartsDefinition = new ReportPartsDefinition();
reportPartsDefinition.DataContext = reportDataContext;
crystalReportPartsViewer.ReportParts = reportPartsDefinition;
}
Version Information
Crystal Reports Basic for Visual Studio 2008
Supported since: Crystal Reports .NET 9
See Also
Reference
CrystalReportPartsViewer Class
CrystalReportPartsViewer Members
CrystalDecisions.Web Namespace