Export (0) Print
Expand All

ReportViewer.GetPageSettings Method

Visual Studio 2010

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)

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.

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.

Show:
© 2014 Microsoft