Convert Excel file to XLS, XLSX, ODS, CSV and HTML in Java
GemBox.Spreadsheet for Java has been retired
GemBox.Spreadsheet enables you to easily convert an Excel file to different file formats in Java. You can convert Excel file to a different spreadsheet format (XLSX, XLS, ODS, CSV, or HTML).
To do this, just load an Excel file and save it to another file format as in the following example. For more details about supported file formats in GemBox.Spreadsheet for Java, see Supported File Formats help page.

import com.gembox.spreadsheet.*;
class Program {
public static void main(String[] args) throws java.io.IOException {
// If using the Professional version, put your serial key below.
SpreadsheetInfo.setLicense("FREE-LIMITED-KEY");
ExcelFile workbook = ExcelFile.load("%InputFileName%");
// In order to achieve the conversion of a loaded Excel file to ODS,
// or to some other Excel format,
// we just need to save an ExcelFile object to desired output file format.
workbook.save("Convert.%OutputFileType%");
}
}
See also
Next steps
Published: December 13, 2018 | Modified: December 19, 2022 | Author: Marek Turis