Link Search Menu Expand Document

SSpread.ExportRangeToHTMLEx Method

Explanation Export a specific cell range to an HTML file.

An extension of the ExportRangeToHTML method. The style information can be specified to be output to the HTML table.
Call format ExportRangeToHTMLEx(col, row, col2, row2, Writer, title, css, table, tr, td, th)
Return value None
Arguments col Start column number of cell range to export
row Start row number of cell range to export
col2 Last column number of cell range to export
row2 Last row number of cell range to export
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 ExportRangeToHTMLEx method
Example of use
    var fs = new FileSystem();
    var f = fs.SaveDialog("Save", "HTMLFile(*.html)=*.html", "html", "");
    ExportRangeToHTMLEx(1, 1, 10, 10, f, "XX Table", "http://example.com/sample.css", "ctable", "ctr", "ctd", "cth");
    f.Close();
    
Related item ExportRangeToHTML, ExportToHTML, ExportToHTMLEx methods