Link Search Menu Expand Document

SSpread.ExportRangeToHTML Method

Explanation Export a specific cell range to an HTML file.

A cell range specification has been added to the functionality of the ExportToHTML method. The cell range specified by the argument is exported regardless of the presence or absence of data in the cell.

Use the ExportRangeToHTMLEx method to specify style information.
Call format ExportRangeToHTML(col, row, col2, row2, Writer)
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
Exception EXT-25 No valid Writer object specified
EXT-28 An error occurred in the ExportRangeToHTML method
Example of use
    var fs = new FileSystem();
    var f = fs.SaveDialog("Save", "HTMLFile(*.html)=*.html", "html", "");
    ExportRangeToHTML(1, 1, 10, 10, f);
    f.Close();
    
Related item ExportExcelBook, ExportRangeToHTMLEx, ExportToHTML, ExportToHTMLEx methods