ReportViewer.SizeToReportContent Property

Gets or sets a value that indicates whether the ReportViewer control should automatically resize to accommodate report content.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
<CategoryAttribute("Appearance")> _
<WebBrowsableAttribute(True)> _
<DefaultValueAttribute(False)> _
Public Property SizeToReportContent As Boolean
'Usage
Dim instance As ReportViewer
Dim value As Boolean

value = instance.SizeToReportContent

instance.SizeToReportContent = value
[CategoryAttribute("Appearance")] 
[WebBrowsableAttribute(true)] 
[DefaultValueAttribute(false)] 
public bool SizeToReportContent { get; set; }
[CategoryAttribute(L"Appearance")] 
[WebBrowsableAttribute(true)] 
[DefaultValueAttribute(false)] 
public:
property bool SizeToReportContent {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_SizeToReportContent ()

/** @property */
public void set_SizeToReportContent (boolean value)
public function get SizeToReportContent () : boolean

public function set SizeToReportContent (value : boolean)

Property Value

A Boolean value. A value of true indicates that the control should automatically resize to accommodate report content. The default value is false.

See Also

Reference

ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WebForms Namespace