ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class

In This Topic
Viewer Class Events
In This Topic

For a list of all members of this type, see Viewer members.

Public Events
 NameDescription
Public EventOccurs when a report item, configured with an interactive action, is clicked within the report preview control.  
Public EventOccurs when an error occurs within the viewer. This event provides detailed information about the error, allowing for custom error handling or logging.  
Public EventOccurs when the Find dialog successfully locates the specified text within the document.  
Public EventOccurs when the user clicks on text or an image that has a hyperlink assigned to it.  
Public EventOccurs after the document has been fully loaded and rendered in the viewer. public partial class MyForm : Form { private Viewer viewer; public MyForm() { InitializeComponent(); // Initialize the viewer viewer = new Viewer(); this.Controls.Add(viewer); // Subscribe to the LoadCompleted event viewer.LoadCompleted += Viewer_LoadCompleted; } private void Viewer_LoadCompleted(object sender, EventArgs e) { // Handle the LoadCompleted event // For example, update the status bar with the total number of pages statusBarLabel.Text = $"Total Pages: {viewer.Document.Pages.Count}"; } }  
Public EventOccurs before the report refreshes. This event is triggered in several scenarios, including: - Opening a new report. - Performing actions such as toggling, sorting, or executing drill-through actions within the report. - Interacting with the UI to view the report (e.g., using the parameters panel), toggling galley mode, refreshing the report, or navigating back to a parent report in a drill-through scenario. In the absence of any errors, this event precedes the LoadCompleted event.  
Public EventOccurs after an item is selected in the table of contents treeview.  
Public EventOccurs when the user clicks an item in the table of contents treeview.  
Public EventOccurs when the index of the currently selected item in the table of contents changes.  
Public EventOccurs when the zoom level of the viewer changes.  
Top
See Also