Convertir le tableau en ODS
Contents
[
Hide
]
Aspose.Cells prend en charge la conversion d’un fichier Excel avec tableau en fichier ODS. Il suffit d’enregistrer le fichier au format ODS et le fichier ODS généré aura une table de fonctionnement.
Exemple de code
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"); |
Le fichier de sortie ODS généré par l’exemple de code est joint pour votre référence.