Skip to main content

DocxExportOptions.ExportMode Property

Gets or sets a value indicating how a document is exported to DOCX.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

[XtraSerializableProperty]
public DocxExportMode ExportMode { get; set; }

Property Value

Type Description
DocxExportMode

An DocxExportMode enumeration value that specifies the DOCX export mode.

Available values:

Name Description
SingleFile

A document is exported to a single file. In this mode, page headers and footers are added to the resulting DOCX file only once, at the beginning and end of the document.

SingleFilePageByPage

A document is exported to a single file, page-by-page.

Property Paths

You can access this nested property as listed below:

Object Type Path to ExportMode
ExportOptions
.Docx .ExportMode

Remarks

The values listed in the DocxExportMode enumeration specify the way in which a document is exported to DOCX.

  • In the DocxExportMode.SingleFilePageByPage mode, the export follows the WYSIWYG paradigm: the report’s page headers and footers, and top and bottom margins appear on every page of the resulting document as they appear in the report’s Print Preview. Elements residing in your report can be treated as frames (by default) or exported by tables (if you enable the DocxExportOptions.TableLayout option).
  • In the DocxExportMode.SingleFile (continuous) mode, a multi-page report is converted into a single document with a table-like layout: the report’s page headers and footers are repeated only once - at the beginning and end of the resulting document.

For more information, see Export to DOCX.

See Also