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

public void ResetPageSettings()
public:
void ResetPageSettings()
member ResetPageSettings : unit -> unit
Public Sub 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

GetPageSettings
SetPageSettings
ReportViewer Class
Microsoft.Reporting.WinForms Namespace

Return to top