MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class
Properties Methods Events

Viewer Class Members

The following tables list the members exposed by Viewer.

Public Constructors
 NameDescription
Public ConstructorInitializes a new instance of Viewer class.  
Top
Public Properties
 NameDescription
Public PropertyGets or sets a value indicating whether the viewer allows the view to be split into multiple panes.  
Public PropertyGets or Sets the dropdown of annotation toolbar.  
Public PropertyGets or Sets the annotation toolbar's visibility.  
Public PropertyGets or sets a value indicating whether the background color is automatically applied to the entire viewing area.  
Public Property

Indicates whether the currently loaded report can be exported.

 
Public PropertyGets or sets the current page number displayed in the viewer.  
Public PropertyGets or sets the Active Reports document to be displayed on the Viewer control.  
Public PropertyGets or sets a value indicating whether the viewer is in Galley Mode.  
Public PropertyProvides access to the history management functionality of the viewer.  
Public PropertyGets or sets the background color for hyperlink text areas within the report viewer. This setting applies only to SectionReports.  
Public PropertyGets or sets the foreground color of hyperlinks displayed within the report viewer.  
Public PropertyGets or sets a value indicating whether the hyperlink text within the report viewer is underlined. This property is applicable only to SectionReports.  
Public PropertyGets or sets the mouse mode of the viewer.  
Public PropertyIndicates whether the "Pan", "Selection Mode" and "Snapshot" buttons are visible in the viewer toolbar.  
Public PropertyGets or sets the number of pages that are displayed horizontally in the viewer when it is in MultiPage view mode.  
Public PropertyGets or sets the number of pages that are displayed vertically in the viewer when it is in MultiPage view mode.  
Public PropertyGets the type of the report currently opened in the viewer.  
Public PropertySpecifies the location of the page in the viewer.  
Public PropertyGets or sets the background color of the pages within the viewer.  
Public PropertyGets or sets the number of pages to preview when loading a report. Setting this property to a value less than or equal to 0 will result in all pages being loaded and available for preview.  
Public PropertyGets or sets the printing settings for the Viewer, determining the behavior of the print operation.  
Public PropertyGets or sets a value indicating whether the viewer repositions the view to the top of the page when a user navigates to another page after scrolling down on the current page.  
Public Property
Public API. Show or hide scrolls within report pane.
 
Public PropertyGets or sets the scrolling behavior for the document within the viewer.  
Public PropertyGets or sets the background color used to highlight text found using the search functionality in the Viewer control.  
Public PropertyGets or sets the foreground color used to highlight text found using the search functionality in the Viewer control.  
Public PropertyGets the sidebar component of the viewer control.
 
Public PropertyGets or sets a value indicating whether the viewer is in Split View mode.  
Public Property

Gets or sets a reference to the TableOfContentsObject.

 
Public PropertyGets or sets a value indicating the current target view when the SplitView feature is enabled.  
Public PropertyGets the reference to ToolbarObject of the control.  
Public PropertyGet or sets the context menu of touch enabled Viewer.
 
Public PropertyGets or sets a value indicating whether the touch mode is enabled or disabled in the viewer.  
Public PropertyGets or sets the visibility of the touch mode button on the viewer's toolbar.  
Public PropertyGets the toolbar used in touch mode.  
Public PropertySpecifies the visual theme for the viewer's user interface.  
Public PropertyGets or sets a value indicating whether the viewer should apply the specified hyperlink settings, such as color, underline, and background color, to hyperlinks within SectionReports.  
Public PropertyGets or sets the view type for displaying pages within the viewer.  
Public PropertyGets or sets the viewer's zoom level. 1 for FitWidth mode 2 for Fit Whole Page mode. Throws ArgumentOutOfRangeException on invalid value.  
Top
Public Methods
 NameDescription
Public MethodCancels the current report rendering process.  
Public MethodOverloaded. Exports the currently loaded report to the specified file using the given export filter.  
Public MethodRetrieves a collection of keyboard shortcuts configured for the viewer.  
Public MethodHandles runtime errors by reporting them to the viewer's model for appropriate action.  
Public MethodOverloaded. Loads a report.  
Public MethodOverloaded. Prints the currently opened document (section or page).  
Public MethodExports the specified loaded report to the specified file (or group of files) using the specified export extension.  
Public MethodSets values for the parameters of the currently displayed report in the Viewer.  
Public MethodSets the enabled or disabled state of a specified viewer command.  
Public MethodOpens the Find Dialog to allow users to search for text within the report.  
Top
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