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

IdxRichEditDocument.GetOpenXmlBytes Method

Returns the entire document content in Office OpenXML (DOCX) format.

#Declaration

Delphi
function GetOpenXmlBytes: TBytes; overload;

#Returns

Type
TBytes

#Remarks

The GetOpenXmlBytes function returns an array of bytes in Office OpenXML format obtained from the opened document. Since the returned data is in the DOCX format, its properties are affected by the current OpenXML export settings specified by the Rich Edit control’s Options.Export.OpenXml property.

The GetOpenXmlBytes function is a getter of the OpenXmlBytes property.

If you need to obtain only a portion of the opened document, call the GetOpenXmlBytes function exposed by the IdxRichEditSubDocument interface.

Note

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

See Also