Export (0) Print
Expand All

ReportViewer.ResetPageSettings Method

Visual Studio 2010

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)

public void ResetPageSettings ()
public void ResetPageSettings ()
public function ResetPageSettings ()

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.

Show:
© 2014 Microsoft