Back to Devexpress

Printing

aspnetcore-402118-rich-edit-printing.md

latest1.3 KB
Original Source

Printing

  • Sep 09, 2024

Call the printDocument method to invoke the Print dialog.

javascript
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.

  • 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.