将XLSB文件的修订版本转换为XLSM
Contents
[
Hide
]
Aspose.Cells for Python via .NET现在支持将XLSB文件的修订版本完全转换为XLSM文件。修订版本位于路径\xl\revisions中。您可以通过将XLSB文件扩展名更改为ZIP来查看它们。\xl\revisions路径包含以 .bin 结尾的文件。
当您使用Aspose.Cells for Python via .NET将您的XLSB文件转换为XLSM文件时,这些 .bin 文件将成功转换为 .xml 文件,如这两个截图所示。
以下代码示例向您展示如何使用Aspose.Cells for Python via .NET将XLSB文件转换为XLSM格式。
This file contains hidden or 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
from aspose.cells import SaveFormat, Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Open workbook | |
workbook = Workbook(dataDir + "sample.xlsb") | |
# Save Workbook to XLSM format | |
workbook.save(dataDir + "output_out.xlsm", SaveFormat.XLSM) |