All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.

Printing

Call the printDocument method to invoke the Print dialog.

Related members: printDocument

richEdit.printDocument(DevExpress.RichEdit.PrintMode.Pdf);

If the mode parameter is not specified, the RichEdit prints a document in a mode set by the Mode(PrintMode) method on the server or printMode property on the client.

The RichEdit control supports HTML and PDF print modes:

  • HTML Mode (default). The control renders the document's markup in a blank browser tab and calls the browser's Print dialog.

    NOTE

    HTML print mode has the following limitations:

    • The document and print dialog settings should use the same page format to prevent content offset.
    • The browser's Print dialog does not specify its settings automatically. We recommend that you use A4 paper for the browser's default print settings.
    • You cannot specify different page orientation for document sections.
  • PDF Mode. The control exports the document to PDF and invokes the Print dialog for the PDF file. When you export to PDF, you should upload a list of available fonts and their sources to the client and register the pdfkit library on your page.