XLSBのリビジョンをXLSMに変換する
Contents
[
Hide
]
Aspose.Cellsでは、XLSBファイルのリビジョンを完全にXLSMファイルに変換する機能をサポートしています。リビジョンはパス\xl\revisions内にあります。XLSBファイルの拡張子をZIPに変更することで表示できます。\xl\revisionsパスには.bin拡張子で終わるファイルが含まれます。
Aspose.Cellsを使用してXLSBファイルをXLSMフォーマットに変換すると、これらの.binファイルが2つのスクリーンショットで示すように、.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); |