All docs
V21.2
21.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SpreadsheetControl.ExportToHtml(Stream, CellRange) Method

Exports the specified range to the specified stream in HTML format.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v21.2.dll

Declaration

public void ExportToHtml(
    Stream stream,
    CellRange range
)

Parameters

Name Type Description
stream Stream

A Stream object to which the created HTML file should be sent.

range CellRange

A CellRange object to be exported to HTML.

Remarks

For an example on how to save a document as HTML, refer to the How to: Export a Document to HTML article.

See Also