GemBox.Spreadsheet

ExcelFile.SaveHtml Method (String, HtmlExporterOptions, Boolean)

Saves the data from used range of the active worksheet to a new file in HTML format.

public void SaveHtml(
   string filePath,
   HtmlExporterOptions options,
   bool indented
);

Parameters

filePath
File path.
options
Options that describe exporting process. If the value is null, new HtmlExporterOptions is created with HtmlExporterOptions.ShowColumnLetters and HtmlExporterOptions.ShowRowNumbers set to true.
indented
Saved file will use XmlTextWriter with Formatting property set to Formatting.Indented.

Remarks

For HTML export DefaultHtmlExporter.DefaultPageToHtml or CellRange.ExportToHtml metods can be used.

See Also

ExcelFile Class | GemBox.Spreadsheet Namespace | ExcelFile.SaveHtml Overload List