Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Printing

Call the printDocument method to invoke the Print dialog.

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.