Last active
February 17, 2023 02:19
-
-
Save aspose-com-gists/0a303cfc684591a40f715df5a1494c89 to your computer and use it in GitHub Desktop.
Excel to HTML in Java
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
// Load Excel file | |
Workbook workbook = new Workbook("workbook.xlsx"); | |
// Create HTML options and enable presentation preference | |
HtmlSaveOptions options = new HtmlSaveOptions(); | |
options.setPresentationPreference(true); | |
// Save as HTML | |
workbook.save("Excel-to-HTML.html", options); |
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
// Load Excel file | |
Workbook workbook = new Workbook("workbook.xlsx"); | |
// Create HTML options and enable tooltip | |
HtmlSaveOptions options = new HtmlSaveOptions(); | |
options.setAddTooltipText(true); | |
// Save as HTML | |
workbook.save("Excel-to-HTML.html", options); |
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
// Load Excel file | |
Workbook workbook = new Workbook("workbook.xlsx"); | |
// Save as HTML | |
workbook.save("Excel-to-HTML.html"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment