Convert Excel to HTML
Contents
[
Hide
]
Convert Excel to HTML in Java
GroupDocs.Conversion (which is a part of Conholdate.Total for Java) library provides a great feature which is exporting Excel workbooks to HTML and MHTML formats which are well known to almost everybody. The major difference between MHTML and HTML is that in the MHTML page it combines all document content like CSS styles, images, audio etc. into a single file.
The code snippet for XLSX to HTML or MHTML conversion using Java language is given below:
// Load the source XLSX file
Converter converter = new Converter("sample.xlsx");
MarkupConvertOptions options = new MarkupConvertOptions();
// Save converted HTML file
converter.convert("converted.html", options);