将XLSB文件的修订版本转换为XLSM
Contents
[
Hide
]
Aspose.Cells现在支持将XLSB文件中的修订版本完全转换为XLSM文件。 修订版本位于路径\xl\revisions内。 您可以通过将XLSB文件扩展名更改为ZIP来查看它们。 \xl\revisions路径包含以.bin扩展名结尾的文件。
使用Aspose.Cells将XLSB文件转换为XLSM文件时,这些.bin文件成功转换为.xml文件,如下两个屏幕截图所示。
将XLSB的修订版转换为XLSM
以下屏幕截图显示了XLSB文件的\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-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getDataDir(ConvertRevisionOfXLSBtoXLSM.class); | |
Workbook workbook = new Workbook(dataDir + "book1.xlsb"); | |
workbook.save(dataDir + ".out.xlsm", SaveFormat.XLSM); |