Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V21.2
  • 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.v21.2.Core.dll

    NuGet Package: DevExpress.Snap.Core

    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