Back to Devexpress

SpreadsheetControl.ExportToHtml(Stream, CellRange) Method

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-dot-exporttohtml-x28-system-dot-io-dot-stream-devexpress-dot-spreadsheet-dot-cellrange-x29.md

latest1.9 KB
Original Source

SpreadsheetControl.ExportToHtml(Stream, CellRange) Method

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

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public void ExportToHtml(
    Stream stream,
    CellRange range
)
vb
Public Sub ExportToHtml(
    stream As Stream,
    range As CellRange
)

Parameters

NameTypeDescription
streamStream

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

How to: Export a Document to HTML

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace