Convert Table to ODS

Contents
[ ]

Aspose.Cells for Python via .NET supports converting an Excel file with table to ODS file. You simply have to save the file in ODS format and the generated ODS file will have a functioning table.

Sample Code

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

The output ODS file generated by the sample code is attached for your reference.

Workbook.save