Back to Devexpress

IWorkbook.ExportToHtml(String, CellRange) Method

officefileapi-devexpress-dot-spreadsheet-dot-iworkbook-dot-exporttohtml-x28-system-dot-string-devexpress-dot-spreadsheet-dot-cellrange-x29.md

latest2.1 KB
Original Source

IWorkbook.ExportToHtml(String, CellRange) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

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

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void ExportToHtml(
    string fileName,
    CellRange range
)
vb
Sub ExportToHtml(
    fileName As String,
    range As CellRange
)

Parameters

NameTypeDescription
fileNameString

A String value which contains the full path (including the file name and extension) specifying where the HTML file will be created.

| | 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 Workbook to HTML

IWorkbook Interface

IWorkbook Members

DevExpress.Spreadsheet Namespace