DrillSubreportEventArgs Classe
Fornisce i dati per l'evento DrillDownSubreport.
Spazio dei nomi CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)
Sintassi
Public Class DrillSubreportEventArgs
Inherits ViewerEventArgs
public class DrillSubreportEventArgs : ViewerEventArgs
Osservazioni
La classe DrillDownSubreportEventArgs
contiene i dati correlati all'evento DrillDownSubreport
. L'evento DrillDownSubreport
viene generato dal controllo CrystalReportViewer
quando un utente esegue l'analisi dettagliata in un sottoreport.
Esempio
Nel seguente esempio vengono restituiti i dettagli dell'evento DrillSubReport
e viene creata una nuova voce nel registro eventi.
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;
}
Gerarchia di ereditarietà
Object
EventArgs
ViewerEventArgs
DrillSubreportEventArgs
Informazioni sulla versione
Crystal Reports Basic for Visual Studio 2008
Supportata da: Crystal Reports for Visual Studio .NET 2002
Vedere anche
Riferimento
DrillSubreportEventArgs Membri
CrystalDecisions.Windows.Forms Spazio dei nomi