CrystalReportPartsViewer.ReportSource 속성
CrystalReportViewer 컨트롤에 바인딩할 보고서를 설정합니다.
네임스페이스 CrystalDecisions.Web 어셈블리 CrystalDecisions.Web (CrystalDecisions.Web.dll)
구문
Public Overrides Property ReportSource As Object
public override object ReportSource {get; set;}
예제
이 예에서는 CrystalReportPartsViewer
에 대한 보고서 소스를 설정하는 방법을 보여 줍니다.
Private Sub SetReportSource(ByVal myReportPath As String)
Dim myReportPathAsObject As Object = CType(myReportPath, Object)
Dim myReportClientDocument As ReportClientDocument = New ReportClientDocumentClass
myReportClientDocument.Open(myReportPathAsObject, 0)
CrystalReportPartsViewer.ReportSource = myReportClientDocument
End Sub
private void SetReportSource(String reportPath)
{
object reportPathAsObject = (object)reportPath;
ReportClientDocument reportClientDocument = new ReportClientDocumentClass();
reportClientDocument.Open(ref reportPathAsObject, 0);
crystalReportPartsViewer.ReportSource = reportClientDocument;
}
버전 정보
Crystal Reports Basic for Visual Studio 2008
Crystal Reports .NET 9 에서부터 지원됨
참고 항목
참조
CrystalReportPartsViewer 클래스
CrystalReportPartsViewer 멤버
CrystalDecisions.Web 네임스페이스