Professional.Crystal.Reports.for.Visual.Studio..NET [Electronic resources]

David McAmis

نسخه متنی -صفحه : 115/ 41
نمايش فراداده

Understanding the CrystalDecisions.Web Namespace

The CrystalDecisions.Web namespace contains all of the classes that relate to functions available within the Web Forms Viewer itself. The following table illustrates the different classes that are available, as well as their use in web applications.

Class

Description

CrystalReportViewer Contains the properties, methods, and events relating to the CrystalReportViewer and viewing reports. Note: some properties of this class are inherited from CrystalReportViewerBase.

CrystalReportViewerBase Contains properties for setting the target browser edition, database logon information, etc.

DrillEventArgs Provides data for the Drill event on main reports and subreports. Drill events fire when a user drills down into a group or summary on a particular main report or subreport.

DrillSubreportEventArgs Provides data for the DrillDownSubreport event on main reports and subreports. Drill events fire when a user drills down into a group or summary on a particular main report or subreport.

ExceptionEventArgs Provides data for the HandleException event. HandleException events occur when there is an error or exception when setting report properties or viewing the report. Primarily used for troubleshooting and error messages.

NavigateEventArgs Provides data for the Navigate event. When a user navigates through the pages of a report, the Navigate event fires each time. This can be used to notify the users when they have reached the last page, to call custom actions, etc.

SearchEventArgs Provides data for the Search event. The CrystalReportViewer includes an integrated search function to search for values within a report. The Search event fires when a user searches for a value and could be used to trigger a search of another report or other report descriptions, etc.

ViewerEventArgs Provides data for the Viewer event. The Viewer event fires when some action has occurred within the viewer itself and can be used to launch other actions when the viewer loads, etc.

ZoomEventArgs Provides data for the ViewZoom event. The ViewZoom event fires when the zoom is changed on the viewer and can be used to suggest the best resolution for a particular report (100%, 200%, etc.), or if you are showing two reports in viewers side by side, to synchronize the zoom factor between the two (so the magnification on both reports stays the same - if you change one to 200%, the other view changes as well).