在深入研究 OpenXml 规范第 4 版后,我发现了以下信息:
sml_CT_Workbook =
4261 attribute conformance { s_ST_ConformanceClass }?,
4262 element fileVersion { sml_CT_FileVersion }?,
4263 element fileSharing { sml_CT_FileSharing }?,
4264 element workbookPr { sml_CT_WorkbookPr }?,
4265 element workbookProtection { sml_CT_WorkbookProtection }?,
4266 element bookViews { sml_CT_BookViews }?,
4267 element sheets { sml_CT_Sheets },
4268 element functionGroups { sml_CT_FunctionGroups }?,
4269 element externalReferences { sml_CT_ExternalReferences }?,
4270 element definedNames { sml_CT_DefinedNames }?,
4271 element calcPr { sml_CT_CalcPr }?,
4272 element oleSize { sml_CT_OleSize }?,
4273 element customWorkbookViews { sml_CT_CustomWorkbookViews }?,
4274 element pivotCaches { sml_CT_PivotCaches }?,
4275 element smartTagPr { sml_CT_SmartTagPr }?,
4276 element smartTagTypes { sml_CT_SmartTagTypes }?,
4277 element webPublishing { sml_CT_WebPublishing }?,
4278 element fileRecoveryPr { sml_CT_FileRecoveryPr }*,
4279 element webPublishObjects { sml_CT_WebPublishObjects }?,
4280 element extLst { sml_CT_ExtensionList }?
没有信息表明这是保证订单还是预期订单,但只进行了一些测试,它看起来很有希望(我检查了该订单的测试工作簿之一的工作簿 openxml 片段)
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<x:workbook xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" mc:Ignorable="x15" xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<x:fileVersion appName="xl" lastEdited="6" lowestEdited="5" rupBuild="14420" />
<x:workbookPr defaultThemeVersion="124226" />
<mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
<mc:Choice Requires="x15">
<x15ac:absPath xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac" url="{path}" />
</mc:Choice>
</mc:AlternateContent>
<x:bookViews>
<x:workbookView xWindow="240" yWindow="90" windowWidth="23580" windowHeight="10110" />
</x:bookViews>
<x:sheets>
<x:sheet name="PRINT" sheetId="1" r:id="rId1" />
<x:sheet name="PRINT2" sheetId="4" r:id="rId2" />
<x:sheet name="Data" sheetId="5" state="veryHidden" r:id="rId3" />
<x:sheet name="PRINT3" sheetId="6" r:id="rId4" />
</x:sheets>
<x:definedNames>
<x:definedName name="Measures">Books!$C$4</x:definedName>
<x:definedName name="_xlnm.Print_Area" localSheetId="0">PRINT!$A$1:$G$25</x:definedName>
</x:definedNames>
<x:calcPr calcId="152511" calcMode="manual" calcOnSave="0" />
<x:oleSize ref="A1:G25" />
</x:workbook>
所以我会尝试最好的猜测。