Convert XLS Excel document into HTML report using Bytescout Spreadsheet SDK - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

Convert XLS Excel document into HTML report using Bytescout Spreadsheet SDK

  • Home
  • /
  • Articles
  • /
  • Convert XLS Excel document into HTML report using Bytescout Spreadsheet SDK

How to convert Excel document into HTML page using Bytescout Spreadsheet SDK

This source code sample converts existing Excel document report into HTML page using Bytescout Spreadsheet SDK

Download example source code: bytescoutxls_export_xls_to_html.zip (5 KB)

Source Excel document:

Source Excel document

HTML document generated from source Excel document

using System;
using System.Collections.Generic;
using System.Text;
using Bytescout.Spreadsheet;
namespace ExportToHTML
{
class Program
{
static void Main(string[] args)
{
// Open Spreadsheet
Spreadsheet document = new Spreadsheet(“SimpleReport.xls”);
// Get Worksheet
Worksheet worksheet = document.Workbook.Worksheets[0];
// Export to HTML
worksheet.SaveAsHTML(“SimpleReport.htm”);
// Close Spreadsheet
document.Close();
}
}
}

Download example source code: bytescoutxls_export_xls_to_html.zip (5 KB)

Tutorials:

prev
next