RichEditControl.OpenXmlBytes Property
Gets or sets the control’s content as an array of bytes in Office Open XML (Docx) format.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.XtraRichEdit.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
Byte[] | An array of bytes representing the document in Docx format. |
Remarks
Use the Document.OpenXmlBytes when operating at the document level, or the SubDocument.GetOpenXmlBytes to retrieve a document range in Docx format.
The code sample below shows how to export the RichEditControl content as a byte array:
byte[] text;
richEditControl.LoadDocument("Documents/FirstLook.docx");
text = richEditControl.OpenXmlBytes;
See Also