将表格转换为ODS

Contents
[ ]

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