DrillSubreportEventArgs 클래스
DrillDownSubreport
이벤트에 대한 데이터를 제공합니다.
네임스페이스 CrystalDecisions.Web 어셈블리 CrystalDecisions.Web (CrystalDecisions.Web.dll)
구문
Public Class DrillSubreportEventArgs
Inherits ViewerEventArgs
public class DrillSubreportEventArgs : ViewerEventArgs
설명
DrillSubreportEventArgs
클래스는 DrillSubreport
이벤트와 관련된 데이터를 포함합니다. CrystalReportViewer
는 DrillSubreport
이벤트를 발생시킵니다.
예제
다음 예에서는 보고서의 DrillDownSubreport
이벤트를 기록합니다.
Private Sub LogDrillDownSubreportEvent(ByVal source As Object, _
ByVal e As CrystalDecisions.Web.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.Web.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 에서부터 지원됨