All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

DotmDocumentImporterOptions Class

Contains options used to load (import) the document in DOTM format (Microsoft Office Open XML Macro-Enabled Template, .dotm).

Namespace: DevExpress.XtraRichEdit.Import

Assembly: DevExpress.RichEdit.v21.1.Core.dll

Declaration

[ComVisible(true)]
public class DotmDocumentImporterOptions :
    OpenXmlDocumentImporterOptions

Remarks

The code sample below shows how to handle the BeforeImport event to specify DOTM import options:

private static void WordProcessor_BeforeImport(object sender, BeforeImportEventArgs e)
{
    if (e.DocumentFormat == DocumentFormat.Dotm)
    {
        //Do not update date fields:
        ((DevExpress.XtraRichEdit.Import.DotmDocumentImporterOptions)e.Options).UpdateField.Date = false;
    }
}

Implements

Inheritance

Object
ViewStatePersisterCore
BaseOptions
RichEditNotificationOptions
DocumentImporterOptions
DevExpress.XtraRichEdit.Import.XmlBasedDocumentImporterOptions
OpenXmlDocumentImporterOptions
DotmDocumentImporterOptions
See Also