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

'Declaration
Public Function GetPageSettings As PageSettings
'Usage
Dim instance As ReportViewer
Dim returnValue As PageSettings

returnValue = instance.GetPageSettings
public PageSettings GetPageSettings ()
public:
PageSettings^ GetPageSettings ()
public PageSettings GetPageSettings ()
public function GetPageSettings () : PageSettings

Return Value

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

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace
SetPageSettings
ResetPageSettings