Back to Devexpress

PrintMode Enum

aspnetcore-devexpress-dot-aspnetcore-dot-richedit-e4cfa8b0.md

latest1.4 KB
Original Source

PrintMode Enum

Lists RichEdit print modes.

Namespace : DevExpress.AspNetCore.RichEdit

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

NuGet Package : DevExpress.AspNetCore.RichEdit

Declaration

csharp
public enum PrintMode

Members

NameDescription
Html

The control renders the current document’s markup into a blank browser tab and invokes the browser’s Print dialog.

| | Pdf |

The control exports the current document to PDF and invokes the Print dialog for the PDF file.

|

Remarks

cshtml
@(Html.DevExpress().RichEdit("richEdit")
    .Printing(p => p.Mode(PrintMode.Pdf))

Note

HTML Mode (default)

To prevent content offset, ensure that the same page format is set in both the document and the printer.

PDF Mode

PDF export requires you to provide a list of available fonts and their sources to be uploaded to the client, and to register the pdfkit library on your page.

See Also

Print a Document

DevExpress.AspNetCore.RichEdit Namespace