Мне нужно прочитать Worksheet.CustomProperies. Есть ли способ прочитать эти свойства?Worksheet.CustomProperites OpenXML
Я также пытался получать XmlDocument из книги и листа с помощью
XmlDocument xlDoc = ws.WorksheetXml;
Дает мне:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
<dimension ref="A3:K24" />
<sheetViews>
<sheetView tabSelected="1" workbookViewId="0"><selection activeCell="H14" sqref="H14" /></sheetView>
</sheetViews>
<sheetFormatPr defaultRowHeight="15" />
<cols></cols><sheetData />
<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />
<pageSetup orientation="portrait" horizontalDpi="4294967293" verticalDpi="4294967293" r:id="rId2" />
**<customProperties><customPr name="My_CustomProperty" r:id="rId3" /></customProperties>**
</worksheet>
Я вижу CustomProperty там, но не в состоянии увидеть значение CustomProperty. Когда я перехожу в файл bin CustomValty (Zip xlsx и извлекает содержимое), значение есть.
Я загрузил документ here
Можете ли вы загрузить документ где-нибудь? – emd
Загружено здесь: https://www.dropbox.com/s/ljph3nnbmddycyn/Users_Template_12_22_Template.xlsx – Cannon