ジェイソン
Contents
[
Hide
]
Aspose.Cells は、ワークブックを Json (JavaScript Object Notation) ファイルに変換することをサポートしています。
Excel ワークブックを JSON に変換
Aspose.Cells API は、スプレッドシートを JSON 形式に変換するためのサポートを提供します。ワークブックを JSON にエクスポートするには、次を渡します。SaveFormat.Jsonの 2 番目のパラメータとしてWorkbook.Save方法。使用することもできますJsonSaveOptionsクラスを使用して、ワークシートを JSON にエクスポートするための追加設定を指定します。
次のコード例は、アクティブなワークシートを Json にエクスポートする方法を示しています。SaveFormat.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"); |