Last active
October 7, 2020 18:27
-
-
Save aspose-com-gists/da22d973f26a723a870656f524d2be06 to your computer and use it in GitHub Desktop.
Excel to HTML in C#
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
// Open the Excel file | |
Workbook workbook = new Workbook("Excel.xlsx"); | |
// Create HTML options | |
HtmlSaveOptions options = new HtmlSaveOptions(); | |
options.PresentationPreference = true; | |
// Save as HTML | |
workbook.Save("Excel-to-HTML-PresentationPreference.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
// Open the Excel file | |
Workbook workbook = new Workbook("Excel.xlsx"); | |
// Create HTML options | |
HtmlSaveOptions options = new HtmlSaveOptions(); | |
options.AddTooltipText = true; | |
// Save as HTML | |
workbook.Save("Excel-to-HTML-Tooltip.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
// Open the Excel file | |
Workbook workbook = new Workbook("Excel.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