共用方式為


NavigateEventArgs 類別

Navigate 事件提供資料。

命名空間 CrystalDecisions.Web 組件 CrystalDecisions.Web (CrystalDecisions.Web.dll)

語法

Public Class NavigateEventArgs
    Inherits ViewerEventArgs
public class NavigateEventArgs : ViewerEventArgs

註解

NavigateEventArgs 類別包含與 Navigate 事件相關的資料。CrystalReportViewer 引發 Navigate 事件。

範例

下列範例會記錄報表的 Navigate 事件。

      Private Sub LogNavigateEvent(ByVal source As Object, _
        ByVal e As CrystalDecisions.Web.NavigateEventArgs) Handles _
          CrystalReportViewer.Navigate
        Dim eventLog As New EventLog("event.log")
        Dim eventMsg As String = _
        "Navigate event:" & vbCrLf & _
        "GroupPath: " & e.GroupPath & vbCrLf & _
        "CurrentPageNumber: " & e.CurrentPageNumber & vbCrLf & _
        "NewPageNumber: " & e.NewPageNumber
        eventLog.WriteEntry(eventMsg)
        e.Handled = False
      End Sub
      private void LogNavigateEvent(Object source, 
        CrystalDecisions.Web.NavigateEventArgs e)
      {
        System.Diagnostics.EventLog eventLog = 
        new System.Diagnostics.EventLog("event.log");
        string eventMsg =
          "Navigate event:" + "\n" +
          "GroupPath: " + e.GroupPath + "\n" +
          "CurrentPageNumber: " + e.CurrentPageNumber + "\n" +
          "NewPageNumber: " + e.NewPageNumber;
        eventLog.WriteEntry(eventMsg);
        e.Handled = false;
      }

繼承階層

Object
   EventArgs
      ViewerEventArgs
         NavigateEventArgs

版本資訊

Crystal Reports Basic for Visual Studio 2008

自從 Crystal Reports for Visual Studio .NET 2002 開始支援

請參閱

參考

NavigateEventArgs 成員
CrystalDecisions.Web 命名空間