A newer version of this page is available. Switch to the current version.

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; }
<DefaultValue(PrintMode.ServerPdf)>
Public Property PrintMode As PrintMode

Property Value

Type Default Description
PrintMode

ServerPdf

A print mode.

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