IdxRichEditDocument.GetOpenXmlBytes Method
Returns the entire document content in Office OpenXML (DOCX) format.
Declaration
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.