Back to Devexpress

DocumentFormat.Html Field

officefileapi-devexpress-dot-xtrarichedit-dot-documentformat-e33c04d5.md

latest5.8 KB
Original Source

DocumentFormat.Html Field

The HTML format.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public static readonly DocumentFormat Html
vb
Public Shared ReadOnly Html As DocumentFormat

Field Value

TypeDescription
DocumentFormat

A document format.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Html field.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L292

csharp
using(FileStream fs = new FileStream("Documents\\testDocumentHTML.html", FileMode.Open)) {
    documentServer.LoadDocument(fs, DevExpress.XtraRichEdit.DocumentFormat.Html);
    richEdit.Document.AppendDocumentContent(documentServer.Document.Range);

word-document-api-examples/CS/CodeExamples/ExportActions.cs#L129

csharp
{
    wordProcessor.SaveDocument(htmlFileStream, DocumentFormat.Html);
}

office-file-api-in-web-api-app/CS/BusinessObjects/Helpers.cs#L32

csharp
RichEditDocumentFormat documentFormat = new RichEditDocumentFormat((int)format);
if (documentFormat == RichEditDocumentFormat.Html)
    server.Options.Export.Html.EmbedImages = true;

winforms-rich-text-editor-retain-original-image-uri-in-html-document/CS/Form1.cs#L60

csharp
{
    richEditControl1.SaveDocument("test.html", DevExpress.XtraRichEdit.DocumentFormat.Html);
    var p = new Process();

word-document-api-automatic-document-conversion-on-web-server/CS/Program.cs#L53

csharp
dictF.Add(DocumentFormat.WordML, "xml");
dictF.Add(DocumentFormat.Html, "htm");
dictF.Add(DocumentFormat.Mht, "mht");

winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L299

vb
Using fs As New System.IO.FileStream("Documents\tesDocumentHTML.html", System.IO.FileMode.Open)
    documentServer.LoadDocument(fs, DevExpress.XtraRichEdit.DocumentFormat.Html)
    richEdit.Document.AppendDocumentContent(documentServer.Document.Range)

word-document-api-examples/VB/CodeExamples/ExportActions.vb#L114

vb
Using htmlFileStream As System.IO.FileStream = New System.IO.FileStream(filePath, System.IO.FileMode.Create)
    wordProcessor.SaveDocument(htmlFileStream, DevExpress.XtraRichEdit.DocumentFormat.Html)
End Using

winforms-rich-text-editor-retain-original-image-uri-in-html-document/VB/Form1.vb#L53

vb
Private Sub btnSave_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnSave.Click
    richEditControl1.SaveDocument("test.html", DevExpress.XtraRichEdit.DocumentFormat.Html)
    Dim p As New Process()

word-document-api-automatic-document-conversion-on-web-server/VB/Program.vb#L48

vb
dictF.Add(DocumentFormat.WordML, "xml")
dictF.Add(DocumentFormat.Html, "htm")
dictF.Add(DocumentFormat.Mht, "mht")

word-document-api-use-multiple-data-sources-for-mail-merge/VB/MailMergeSample/Default.aspx.vb#L24

vb
Response.ContentType = "text/html"
Dim outputStream As Stream = ExecuteMerge(previewName, DocumentFormat.Html)
outputStream.Seek(0, SeekOrigin.Begin)

See Also

DocumentFormat Struct

DocumentFormat Members

DevExpress.XtraRichEdit Namespace