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

PrintMode Enum

Lists RichEdit print modes.

#Declaration

TypeScript
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