Back to Devexpress

XtraReport.RollPaper Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-604cb163.md

latest4.1 KB
Original Source

XtraReport.RollPaper Property

Specifies whether the document is supposed to be printed on roll paper (in other words, as a single uninterrupted page).

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[DefaultValue(false)]
[SRCategory(ReportStringId.CatPageSettings)]
public bool RollPaper { get; set; }
vb
<SRCategory(ReportStringId.CatPageSettings)>
<DefaultValue(False)>
Public Property RollPaper As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to provide a continuous document layout, suited for roll paper printing; otherwise false.

|

Remarks

The RollPapersetting will affect the corresponding page options (such as the page number values), as well as disable page-specific commands in the Print Preview (the Navigation and Many Pages options). When you export a report with the RollPaper option enabled to PDF, the resulting document consists of a single page.

If you set the PageBreak property of a report band to a value other than PageBreak.None, the document will be paginated, and the RollPapersetting will have no effect.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RollPaper property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-winforms-label-report-in-code/CS/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.cs#L40

csharp
report.Landscape = paperKindList.Landscape;
report.RollPaper = false;
float labelDpi = model.MeasurementUnit.ToDpi();

reporting-winforms-best-fit-table-column-width/CS/ReportHelper/ReportHelper.cs#L27

csharp
targetReport.PageWidth = 3000;
    targetReport.RollPaper = true;
}

reporting-winforms-label-report-in-code/VB/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.vb#L40

vb
report.Landscape = paperKindList.Landscape
report.RollPaper = False
Dim labelDpi As Single = GraphicsDpi.UnitToDpi(CType(model.MeasurementUnit, System.Drawing.GraphicsUnit))

reporting-winforms-best-fit-table-column-width/VB/ReportHelper/ReportHelper.vb#L33

vb
targetReport.PageWidth = 3000
    targetReport.RollPaper = True
End Sub

See Also

XtraReport Class

XtraReport Members

DevExpress.XtraReports.UI Namespace