All docs
V20.2
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+

DocmDocumentImporterOptions Class

Contains options used to load (import) the document in DOCM format (Microsoft Office Open XML Macro-Enabled Document, .docm).

Namespace: DevExpress.XtraRichEdit.Import

Assembly: DevExpress.RichEdit.v20.2.Core.dll

Declaration

[ComVisible(true)]
public class DocmDocumentImporterOptions :
    OpenXmlDocumentImporterOptions
<ComVisible(True)>
Public Class DocmDocumentImporterOptions
    Inherits OpenXmlDocumentImporterOptions

Remarks

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

Implements

Inheritance

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