ODF .NET Class Library
Show/Hide TOC

# TextDocumentToHtml Method

Converts the document to HTML format.

## Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public string ToHtml()

VB

    Public Function ToHtml As String

#### Return Value

String
The HTML representation of the document.

## See Also

#### Reference

TextDocument Class
Independentsoft.Office.Odf Namespace