Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditSubDocument.GetOpenXmlBytes(IdxRichEditDocumentRange) Method

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

#Declaration

Delphi
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