CrystalReportPartsViewer.ReportParts Proprietà
Restituisce o imposta l'elenco delle parti del report da visualizzare nel controllo CrystalReportPartsViewer
.
Spazio dei nomi CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)
Sintassi
Public Property ReportParts As Object
public object ReportParts {get; set;}
Osservazioni
L'elenco può essere definito utilizzando la classe ReportPartsDefinition.
Le parti report iniziali possono essere impostate nel file del report (*.rpt) mediante la finestra di dialogo Opzioni report. In Crystal Reports selezionare Opzioni report dal menu File. In Visual Studio, fare clic con il pulsante destro del mouse sul report, scegliere Report e quindi Opzioni report.
Vedere la classe ReportPartsDefinition per un esempio di come aggiungere parti del report a un controllo CrystalReportPartsViewer
.
Esempio
Nel seguente esempio viene illustrato come impostare le parti del report per CrystalReportPartsViewer
.
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;
}
Informazioni sulla versione
Crystal Reports Basic for Visual Studio 2008
Supportata da: Crystal Reports .NET 9
Vedere anche
Riferimento
CrystalReportPartsViewer Classe
CrystalReportPartsViewer Membri
CrystalDecisions.Web Spazio dei nomi