Share via


ReportViewer.PageSettingsChanged Event

Occurs when the margins or the page size for the current report in the ReportViewer control have changed.

Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in microsoft.reportviewer.winforms.dll)

Syntax

'Declaration
Public Event PageSettingsChanged As EventHandler
'Usage
Dim instance As ReportViewer
Dim handler As EventHandler

AddHandler instance.PageSettingsChanged, handler
public event EventHandler PageSettingsChanged
public:
event EventHandler^ PageSettingsChanged {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
/** @event */
public void add_PageSettingsChanged (EventHandler value)

/** @event */
public void remove_PageSettingsChanged (EventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Remarks

This event can occur when page settings for the current report are changed by the SetPageSettings method, when the user modifies the page settings in the Page Setup dialog box and clicks the OK button, or when the report definition changes, such as when the user navigates to a drillthrough report. Information about this event is passed in a EventArgs object to the EventHandler delegate, which handles the event.

For more information about handling events, see Consuming Events.

See Also

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace