Worksheet.CustomProperiesを読む必要があります。このプロパティを読み取る方法はありますか?
また、ワークブックとワークシートの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値は表示されません。CustomProperty binファイル(xlsxを圧縮してコンテンツを抽出)に移動すると、値が表示されます。
ここにドキュメントをアップロードしました