Manages the page view history.
For a list of all members of this type, see History members.
Inheritance Hierarchy
System.Object
DataDynamics.ActiveReports.Viewer.History
Syntax
[Visual Basic]
Public NotInheritable Class History
[C#]
public sealed class History
Remarks
Page view history is created as the user navigates from one page to another, similar to a browser's history. You can use MoveNext and MovePrev methods to traverse the page view history.
Example
[C#]
private void btnBack_Click(object sender, System.EventArgs e) { arv.ReportViewer.History.MovePrev(); btnBack.Enabled = (arv.ReportViewer.History.Position >= 0); btnForward.Enabled = (arv.ReportViewer.History.Position < arv.ReportViewer.History.Count); } private void btnForward_Click(object sender, System.EventArgs e) { arv.ReportViewer.History.MoveNext(); btnBack.Enabled = (arv.ReportViewer.History.Position >= 0); btnForward.Enabled = (arv.ReportViewer.History.Position < arv.ReportViewer.History.Count); } private void btnClear_Click(object sender, System.EventArgs e) { arv.ReportViewer.History.Clear(); btnBack.Enabled = false; btnForward.Enabled = false; } |
[Visual Basic]
Private Sub btnBack_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBack.Click
With arv.ReportViewer.History
.MovePrev()
btnBack.Enabled = (.Position >= 0)
btnForward.Enabled = (.Position < .Count)
End With
End Sub
Private Sub btnForward_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnForward.Click
With arv.ReportViewer.History
.MoveNext()
btnBack.Enabled = (.Position >= 0)
btnForward.Enabled = (.Position < .Count)
End With
End Sub
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
arv.ReportViewer.History.Clear()
btnBack.Enabled = False
btnForward.Enabled = False
End Sub |
See Also
History Members
| DataDynamics.ActiveReports.Viewer Namespace
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.