将 XLSB 的修订版转换为 XLSM
Contents
[
Hide
]
Aspose.Cells 现在支持将 XLSB 文件的修订版完全转换为 XLSM 文件。修订位于路径 \xl\revisions 内。您可以通过将 XLSB 文件扩展名更改为 ZIP 来查看它们。 \xl\revisions 路径包含以 .bin 扩展名结尾的文件。
当您使用 Aspose.Cells 将 XLSB 文件转换为 XLSM 文件时,这些 .bin 文件成功转换为 .xml 文件,如这两个屏幕截图所示。
以下代码示例向您展示了如何使用 Aspose.Cells 将 XLSB 文件转换为 XLSM 格式。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Open workbook | |
Workbook workbook = new Workbook(dataDir + "sample.xlsb"); | |
// Save Workbook to XLSM format | |
workbook.Save(dataDir + "output_out.xlsm", SaveFormat.Xlsm); |