Skip to main content

PrintMode Enum

Lists RichEdit print modes.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v24.1.dll

NuGet Package: DevExpress.AspNetCore.RichEdit

Declaration

public enum PrintMode

Members

Name Description
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

@(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