テーブルをODSに変換

Aspose.Cellsは、テーブルを含むExcelファイルをODSファイルに変換する機能をサポートしています。ファイルをODS形式で保存するだけで、生成されたODSファイルには機能するテーブルが含まれます。

サンプルコード

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
//Source directory
string sourceDir = RunExamples.Get_SourceDirectory();
//Output directory
string outputDir = RunExamples.Get_OutputDirectory();
// Open an existing file that contains a table/list object in it
Workbook wb = new Workbook(sourceDir + "SampleTable.xlsx");
// Save the file
wb.Save(outputDir + "ConvertTableToOds_out.ods");

サンプルコードによって生成された出力ODSファイルが添付されています。

Output ODS File