Convertir Tabla a ODS
Contents
[
Hide
]
Aspose.Cells admite la conversión de un archivo de Excel con tabla a un archivo ODS. Simplemente tiene que guardar el archivo en formato ODS y el archivo ODS generado tendrá una tabla funcional.
Código de Muestra
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-Java | |
//Source directory | |
String sourceDir = Utils.Get_SourceDirectory(); | |
//Output directory | |
String outputDir = Utils.Get_OutputDirectory(); | |
// Open an existing file that contains a table/list object in it | |
Workbook workbook = new Workbook(sourceDir + "SampleTable.xlsx"); | |
// Save the file | |
workbook.save(outputDir + "ConvertTableToOds_out.ods"); |
El archivo ODS de salida generado por el código de ejemplo se adjunta para su referencia.