---
Product: Aspose.Cells
Platform: typescript
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/typescript/HtmlExporter
---

# HtmlExporter

## Overview

`HtmlExporter` is a class in Aspose.Cells FOSS for Typescript.

HtmlExporter can convert a Workbook into an HTML frameset or generate HTML for an individual worksheet, supporting web‑based presentation of spreadsheet data.

This class provides 3 methods for working with HtmlExporter objects in Typescript programs.
Available methods include: `constructor`, `saveAsHtmlFrameset`, `worksheetToHtmlForExcel`.
All public members are accessible to any Typescript application after installing the Aspose.Cells FOSS for Typescript package.

## Description

`HtmlExporter` is a class in the Aspose.Cells FOSS library for TypeScript that exposes 2 methods and 0 properties for programmatic use.

Core capabilities include: Initializes a new htmlexporter instance for the given workbook; saves the workbook as an html frameset to the specified file path and directory. These operations enable developers to integrate htmlexporter functionality directly into TypeScript applications.

Instances are created through a single constructor that initializes the object with default values.

## Methods

| Signature | Description |
|-----------|-------------|
| `constructor(workbook: Workbook)` | Initializes a new HtmlExporter instance for the given workbook. |
| `saveAsHtmlFrameset(filePath: string, htmlDir: string, fileName: string)` | Saves the workbook as an HTML frameset to the specified file path and directory. |
| `worksheetToHtmlForExcel(worksheet: Worksheet)` → `string` | Converts the given worksheet to an HTML string for Excel-compatible web presentation. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)