DrillSubreportEventArgs 클래스
DrillDownSubreport 이벤트에 대한 데이터를 제공합니다.
네임스페이스 CrystalDecisions.Windows.Forms 어셈블리 CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
구문
Public Class DrillSubreportEventArgs
Inherits ViewerEventArgs
public class DrillSubreportEventArgs : ViewerEventArgs
설명
DrillDownSubreportEventArgs
클래스는 DrillDownSubreport
이벤트에 관련된 데이터를 포함합니다. DrillDownSubreport
이벤트는 사용자가 하위 보고서로 드릴다운할 때 CrystalReportViewer
컨트롤에서 발생합니다.
예제
다음 예에서는 DrillSubReport
이벤트에 대한 자세한 정보를 가져오고 이벤트 로그에 새 항목을 만듭니다.
Private Sub LogDrillDownSubreportEvent(ByVal source As Object, _
ByVal e As CrystalDecisions.Windows.Forms.DrillSubreportEventArgs) Handles _
CrystalReportViewer.DrillDownSubreport
Dim eventLog As New EventLog("event.log")
Dim eventMsg As String = _
"DrillDownSubreport event:" & vbCrLf & _
"CurrentSubreportName: " & e.CurrentSubreportName() & vbCrLf & _
"NewSubreportName: " & e.NewSubreportName() & vbCrLf & _
"CurrentSubreportPageNumber: " & e.CurrentSubreportPageNumber() & vbCrLf & _
"NewSubreportPageNumber: " & e.NewSubreportPageNumber() & vbCrLf & _
"CurrentSubreportPosition: " & e.CurrentSubreportPosition().ToString & vbCrLf & _
"NewSubreportPosition: " & e.NewSubreportPosition().ToString
eventLog.WriteEntry(eventMsg)
e.Handled = False
End Sub
private void LogDrillDownSubreportEvent(Object source,
CrystalDecisions.Windows.Forms.DrillSubreportEventArgs e)
{
System.Diagnostics.EventLog eventLog =
new System.Diagnostics.EventLog("event.log");
string eventMsg =
"DrillDownSubreport event:" + "\n" +
"CurrentSubreportName: " + e.CurrentSubreportName + "\n" +
"NewSubreportName: " + e.NewSubreportName + "\n" +
"CurrentSubreportPageNumber: " + e.CurrentSubreportPageNumber + "\n" +
"NewSubreportPageNumber: " + e.NewSubreportPageNumber + "\n" +
"CurrentSubreportPosition: " + e.CurrentSubreportPosition.ToString() + "\n" +
"NewSubreportPosition: " + e.NewSubreportPosition.ToString();
eventLog.WriteEntry(eventMsg);
e.Handled = false;
}
상속 계층 구조
Object
EventArgs
ViewerEventArgs
DrillSubreportEventArgs
버전 정보
Crystal Reports Basic for Visual Studio 2008
Crystal Reports for Visual Studio .NET 2002 에서부터 지원됨
참고 항목
참조
DrillSubreportEventArgs 멤버
CrystalDecisions.Windows.Forms 네임스페이스