ReportViewer.GetPageSettings Method ()

 

Returns the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode.

Namespace:   Microsoft.Reporting.WinForms
Assembly:  Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)

Syntax

public PageSettings GetPageSettings()
public:
PageSettings^ GetPageSettings()
member GetPageSettings : unit -> PageSettings
Public Function GetPageSettings As PageSettings

Return Value

Type: System.Drawing.Printing.PageSettings

A PageSettings object that contains the page settings that are used to print the current report in the ReportViewer control or display it in print layout mode, or null if the ReportViewer control has not yet processed a report.

Remarks

By default, the ReportViewer control uses the page settings specified in the report definition when printing the current report or displaying it in print layout mode. Modifying the page settings by changing the properties of the returned PageSettings object has no effect. To modify page settings, you must use the SetPageSettings method.

The returned page settings only apply to the current report in the ReportViewer control, and do not apply to its parent report or the drillthrough reports accessible from it.

See Also

SetPageSettings
ResetPageSettings
ReportViewer Class
Microsoft.Reporting.WinForms Namespace

Return to top