Workbook.LoadDocumentProperties(Byte[]) Method
Loads document properties for a workbook from the specified byte array. The document format is determined automatically.
You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this method in production code.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Docs.v24.2.dll
NuGet Package: DevExpress.Document.Processor
Declaration
Parameters
Name | Type | Description |
---|---|---|
buffer | Byte[] | A byte array that contains document data. |
Returns
Type | Description |
---|---|
ReadOnlyDocumentProperties | An object that stores the retrieved document properties. |
Remarks
Use this method to load document metadata (document properties) without loading the workbook itself. You can use the retrieved metadata to search for a specific document, to organize files, or to collect statistics.
The Spreadsheet Document API can load document properties from workbooks in the following formats:
XLSX,
XLSM,
XLSB,
XLS,
XLTX,
XLTM,
XLT,
XML (XML Spreadsheet 2003).
For CSV and TXT files or encrypted documents, the LoadDocumentProperties method returns empty properties. If the loaded document is corrupted or its format is unknown, the LoadDocumentProperties method throws an exception.