Link Search Menu Expand Document

SSpread.ExportToHTMLEx Method

Explanation Export all cells to an HTML file. An extension of the ExportToHTML method.

The style information can be specified to be output to the HTML table.

Use the ExportRangeToHTMLEx method to export a specific cell range.
Call format ExportToHTMLEx(Writer, title, css, table, tr, td, th)
Return value None
Arguments Writer Export destination Writer Object
title HTML page title
css CSS file name
table Table tag class name
tr Tr tag class name
td Td tag class name
th Th tag class name
Exception EXT-25 No valid Writer object specified
EXT-28 An error occurred in the ExportToHTMLEx method
Example of use
    var fs = new FileSystem();
    var f = fs.SaveDialog("Save", "HTML File(*.html)=*.html", "html", "");
    ExportToHTMLEx(f, "XX Table", "http://example.com/sample.css", "ctable", "ctr", "ctd", "cth");
    f.Close();
    
Related item ExportRangeToHTML, ExportRangeToHTMLEx, ExportToHTML method