Click or drag to resize

IWorksheet SaveToHtml Method (String, HTMLOptions)

Saves as HTML.
Examples
The following code snippets illustrates how to save as html to the specified file name and save option:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Save to HTML file</para><para>worksheet.SaveToHtml("Sample.html" , Spire.Xls.Core.Spreadsheet.HTMLOptions.Default);</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
void SaveToHtml(
	string filename,
	HTMLOptions saveOptions
)

Parameters

filename
Type: System String
The filename.
saveOptions
Type: Spire.Xls.Core.Spreadsheet HTMLOptions
The option.
See Also