DrillSubreportEventArgs Classe
Fournit des données pour l'événement DrillDownSubreport.
Espace de noms CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)
Syntaxe
Public Class DrillSubreportEventArgs
Inherits ViewerEventArgs
public class DrillSubreportEventArgs : ViewerEventArgs
Remarques
La classe DrillSubreportEventArgs contient les données associées à l'événement DrillSubreport. La classe CrystalReportViewer déclenche l'événement DrillSubreport.
Exemple
L'exemple suivant consigne l'événement DrillDownSubreport du rapport.
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;
}
Hiérarchie d'héritage
Object
EventArgs
ViewerEventArgs
DrillSubreportEventArgs
Informations de version
Crystal Reports Basic for Visual Studio 2008
Pris en charge depuis : Crystal Reports for Visual Studio .NET 2002
Voir aussi
Référence
DrillSubreportEventArgs Membres
CrystalDecisions.Web Espace de noms