Skip to main content

IdxRichEditSubDocument.GetOpenXmlBytes(IdxRichEditDocumentRange) Method

Returns the content of the specified document range in Office Open XML (DOCX) format.

Declaration

function GetOpenXmlBytes(const ARange: IdxRichEditDocumentRange): TBytes; overload;

Parameters

Name Type
ARange IdxRichEditDocumentRange

Returns

Type
TBytes

Remarks

The GetOpenXMLBytes function returns an array of bytes in Office Open XML format obtained from the source document range passed as the ARange parameter. Since the returned data is in the DOCX format, its properties are affected by the current OpenXML export settings specified by the Options.Export.OpenXml property.

Note

In order to provide support for the Office Open XML (DOCX) format, add the dxRichEdit.OpenXML unit to the uses clause, respectively. If you prefer building projects with runtime packages, add the corresponding dxRichEditControlOpenXMLFormatRS~ package to the runtime package list.

See Also