Поделиться через


ReportViewer.GetPageSettings Method

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

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.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 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. 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.

To find out whether the report area contains a report, use the ReportAreaContentType property.

See Also

Reference

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