ReportViewer.ResetPageSettings Method

Reverts the page settings for the current report in the ReportViewer control to the settings in the report definition.

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

Syntax

'Declaration
Public Sub ResetPageSettings
'Usage
Dim instance As ReportViewer

instance.ResetPageSettings
public void ResetPageSettings ()
public:
void ResetPageSettings ()
public void ResetPageSettings ()
public function ResetPageSettings ()

Remarks

If you changed the printer settings in a previous call to SetPageSettings using the PrinterSettings property of the pageSettings parameter, these changes are not reverted. Also, only the changes you made to the current in the ReportViewer control are reverted, and calling this method does not affect its parent report or the drillthrough reports accessible from it.

If the ReportViewer control is in print layout mode when this method is called, the it cancels any currently running report rendering operation and rerenders the report immediately.

See Also

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace
ReportViewer.GetPageSettings Method
SetPageSettings