Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/da22d973f26a723a870656f524d2be06 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/da22d973f26a723a870656f524d2be06 to your computer and use it in GitHub Desktop.
Excel to HTML in C#
// 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);
// 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);
// 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