Skip to main content
A newer version of this page is available.

SnapList.SkipEmptyListOnExport Property

Gets or sets whether an empty list should appear in a printout or an export output.

Namespace: DevExpress.Snap.Core.API

Assembly: DevExpress.Snap.v19.1.Core.dll

Declaration

bool SkipEmptyListOnExport { get; set; }

Property Value

Type Description
Boolean

true, to skip an empty list when a document is printed or exported; otherwise, false.

The default is false.

Remarks

By default, if the Snap control cannot retrieve data from the underlying data source for a specific field in a template document (e.g., when there is no corresponding column in the data source), it displays the field name instead. However, when you print or export this template to a third-party format, the field name doesn’t appear in the resulting document. Instead, an empty list is generated. To change this default behavior and avoid empty data on previewing and exporting a document, set the SkipEmptyListOnExport property to true. In this case, the entire empty list (including the list header and list footer) will be excluded from the resulting document.

See Also