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:
- Initialize the Converter: Create an instance of
HtmlConverter. - Configure Options: Use
HtmlSaveOptionsto decide if resources should be embedded or saved separately. - Define File Paths: Provide the source XLSX path and the target HTML file location.
- Execute Conversion: Call
Processwith 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:
- Initialize the Converter: Instantiate
HtmlConverter. - Set XLSX Parameters: Apply
SaveOptionsto specify layout, media type, and other preferences. - Specify File Locations: Indicate the input HTML file and the desired XLSX output path.
- Run the Conversion: Invoke
Processwith 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.