Skip to main content

ReportViewer.AutoSize Property

Specifies whether a report’s size is defined by the bounds of a report viewer, or of a report page.

Namespace: DevExpress.XtraReports.Web

Assembly: DevExpress.XtraReports.v24.1.Web.WebForms.dll

NuGet Package: DevExpress.Web.Reporting

Declaration

[DefaultValue(true)]
[SRCategory(ReportStringId.CatBehavior)]
public bool AutoSize { get; set; }

Property Value

Type Default Description
Boolean true

true to use the report page’s size; otherwise, false.

Remarks

Use the AutoSize property to restrict the size of a report when it is displayed on a Web page to the ReportViewer.Height and ReportViewer.Width of the ReportViewer control in which it is contained.

When the AutoSize property is enabled, and the report’s size is greater than the remaining space on the Web page, the page will be expanded to fit the report.

See Also