Udostępnij za pośrednictwem


Metoda ReportViewer.ResetPageSettings —

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

Przestrzeń nazw:  Microsoft.Reporting.WinForms
Zestaw:  Microsoft.ReportViewer.WinForms (w Microsoft.ReportViewer.WinForms.dll)

Składnia

'Deklaracja
Public Sub ResetPageSettings
public void ResetPageSettings()
public:
void ResetPageSettings()
member ResetPageSettings : unit -> unit 
public function ResetPageSettings()

Uwagi

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.

Zobacz też

Informacje

ReportViewer Klasa

Przestrzeń nazw Microsoft.Reporting.WinForms

GetPageSettings

SetPageSettings