Json
Contents
[
Hide
]
Aspose.CellsはワークブックをJSON(JavaScript Object Notation)ファイルに変換する機能をサポートしています。
ExcelワークブックをJSONに変換
Aspose.Cells APIは、スプレッドシートをJSON形式に変換する機能を提供します。ワークブックをJSONにエクスポートするには、SaveFormat.JsonをWorkbook.Saveメソッドの第2パラメータとして渡します。また、ワークシートをJSONにエクスポートするための追加設定を指定するためにJsonSaveOptionsクラスを使用することもできます。
次のコード例は、SaveFormat.Json列挙型メンバーを使用してアクティブなワークシートをJsonにエクスポートする方法を示しています。変換に関連するコードで、ソースファイルとコードによって生成された出力Jsonファイルを参照してください。
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 | |
//Load your source workbook | |
Workbook workbook = new Workbook("Book1.xlsx"); | |
// convert the workbook to json file. | |
workbook.Save(dir + "book1.json"); |