.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SubDocument.GetOpenXmlBytes Method

Name Parameters Description
GetOpenXmlBytes(DocumentRange) range Exports the content of the specified document range as a document in Office Open XML (Docx) format and returns a byte array with this document.
GetOpenXmlBytes(DocumentRange, OpenXmlDocumentExporterOptions) range, options Exports the content of the specified document range as a document in Office Open XML (Docx) format and returns a byte array with this document.