Skip to main content
A newer version of this page is available. .

ASPxRichEditPrintingSettings.PrintMode Property

Specifies the print mode.

Namespace: DevExpress.Web.ASPxRichEdit

Assembly: DevExpress.Web.ASPxRichEdit.v19.2.dll

Declaration

[DefaultValue(PrintMode.ServerPdf)]
public PrintMode PrintMode { get; set; }

Property Value

Type Default Description
PrintMode **ServerPdf**

A print mode.

Available values:

Name Description
ServerPdf

The server PDF file is printed.

ClientHtml

The client HTML page is printed.

Property Paths

You can access this nested property as listed below:

Object Type Path to PrintMode
ASPxRichEditSettings
.Printing.PrintMode

Remarks

The ASPxRichEdit control supports two print modes: Server PDF Mode (ServerPdf) and Client HTML Mode (ClientHtml).

  • In server PDF mode (default), ASPxRichEdit sends a request to the server for the printed document. The server exports the document to a PDF file and sends the result to the client. On the client, the control invokes the Print dialog for the PDF file.
  • In client HTML mode, ASPxRichEdit renders the current document’s markup into a blank browser tab and calls the browser’s native Print dialog. It allows you to print the same layout that you see on the screen.
ASPxRichEdit.Settings.Printing.PrintMode = PrintMode.ClientHtml;
See Also