Convert Excel to Word
Contents
[
Hide
]
Convert Excel to Word in Java
GroupDocs.Conversion (which is a part of Conholdate.Total for Java) library allows you to convert Microsoft Excel files into a well known range of Microsoft Word formats. The most commonly used Microsoft Word formats are DOCX and DOC, and when converting XLSX spreadsheet you should specify the target format by setting Format property for WordProcessingConvertOptions object.
Code example for XLSX to DOCX conversion using Java is given below:
// Load the source XLSX file
Converter converter = new Converter("sample.xlsx");
WordProcessingConvertOptions options = new WordProcessingConvertOptions();
// Save converted DOCX file
converter.convert("converted.docx", options);