Skip to main content
All docs
V26.1
  • PrintMode Enum

    Lists RichEdit print modes.

    Declaration

    export enum PrintMode {
        Html = 1,
        Pdf = 2
    }

    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

    richEdit.printMode = DevExpress.RichEdit.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