Udostępnij za pośrednictwem


Metoda ReportViewer.SetPageSettings —

Sets the page settings that are used to print the current report in the ReportViewer control.

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

Składnia

'Deklaracja
Public Sub SetPageSettings ( _
    pageSettings As PageSettings _
)
public void SetPageSettings(
    PageSettings pageSettings
)
public:
void SetPageSettings(
    PageSettings^ pageSettings
)
member SetPageSettings : 
        pageSettings:PageSettings -> unit 
public function SetPageSettings(
    pageSettings : PageSettings
)

Parametry

  • pageSettings
    Typ: PageSettings
    A PageSettings object that contains the new page settings.
    This parameter must not be nullodwołanie o wartości null (Nothing w języku Visual Basic).

Uwagi

By default, the ReportViewer control uses the page settings specified in the report definition when printing the current report. Use this method to change the page settings for the current report (not the current page), such as margins or paper size. This method validates the margin and page size values in the pageSettings parameter. Note that the change only affects the current report in the ReportViewer control, and does not affect its parent report or the drillthrough reports accessible from it.

Zobacz też

Informacje

ReportViewer Klasa

Przestrzeń nazw Microsoft.Reporting.WebForms

GetPageSettings

ResetPageSettings