HTML Converter

Sheetize HTML Converter for .NET delivers robust utilities for toggling documents between XLSX and HTML, making it perfect for web presentation, archiving, and report generation. With extensive options for handling assets and controlling layout, the tool can be customized to suit diverse project requirements.

Main Features

Convert XLSX to HTML

Create HTML representations of XLSX workbooks for web display or integration into applications that accept HTML input.

Convert HTML to XLSX

Transform HTML markup into high‑fidelity XLSX files, ideal for printable reports, web‑content preservation, or sharing documents with a fixed layout.


Detailed Instructions

XLSX ↔ HTML Workflow

To convert an XLSX file to HTML, follow these steps:

  1. Initialize the Converter: Create an instance of HtmlConverter .
  2. Configure Options: Use HtmlSaveOptions to decide if resources should be embedded or saved separately.
  3. Define File Paths: Provide the source XLSX path and the target HTML file location.
  4. Execute Conversion: Call Process with the prepared options.

Example – XLSX to HTML with Embedded Resources

var loadOptions = new Sheetize.LoadOptions
{
    InputFile = @"D:\Input.xlsx",
};

var saveOptions = new HtmlSaveOptions
{
    SaveFormat = FileFormatType.Html,
    OutputFile = @"D:\Output.html"
};

HtmlConverter.Process(loadOptions, saveOptions);

HTML ↔ XLSX Workflow

To convert HTML back to XLSX, perform the following:

  1. Initialize the Converter: Instantiate HtmlConverter .
  2. Set XLSX Parameters: Apply SaveOptions to specify layout, media type, and other preferences.
  3. Specify File Locations: Indicate the input HTML file and the desired XLSX output path.
  4. Run the Conversion: Invoke Process with the configured options.

Example – HTML to XLSX

var loadOptions = new Sheetize.LoadOptions
{
    InputFile = @"D:\Input.html",
};

var saveOptions = new SaveOptions
{
    OutputFile = @"D:\Output.xlsx"
};

HtmlConverter.Process(loadOptions, saveOptions);

This flexible converter can be utilized for numerous scenarios, from generating XLSX reports from web pages to exposing XLSX archives as HTML. For advanced customization, refer to the full Sheetize documentation.

Expanded Format Support

  • HTML and MHTML can now be converted to and from spreadsheet formats, text formats, EPUB, AZW3, JSON, and the reverse direction.
  • This bidirectional capability broadens the range of interoperable document types, enabling seamless transformation across web, e‑book, and data‑exchange mediums.
 English