Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.