Share via


ReportViewer.SetDisplayMode Method

Sets the control display to normal or print preview mode.

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

Syntax

'Declaration
Public Sub SetDisplayMode ( _
    mode As DisplayMode _
)
'Usage
Dim instance As ReportViewer
Dim mode As DisplayMode

instance.SetDisplayMode(mode)
public void SetDisplayMode (
    DisplayMode mode
)
public:
void SetDisplayMode (
    DisplayMode mode
)
public void SetDisplayMode (
    DisplayMode mode
)
public function SetDisplayMode (
    mode : DisplayMode
)

Parameters

  • mode
    A DisplayMode enumeration value specifying which display mode to use. Valid values are Normal or PrintLayout.

See Also

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WinForms Namespace