Back to Devexpress

RichEditControl.Print(PrinterSettings, String) Method

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-dot-print-x28-system-dot-drawing-dot-printing-dot-printersettings-system-dot-string-x29.md

latest2.2 KB
Original Source

RichEditControl.Print(PrinterSettings, String) Method

Prints the document with the given printer settings and document name.

Namespace : DevExpress.Xpf.RichEdit

Assembly : DevExpress.Xpf.RichEdit.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public void Print(
    PrinterSettings printerSettings,
    string printDocumentName
)
vb
Public Sub Print(
    printerSettings As PrinterSettings,
    printDocumentName As String
)

Parameters

NameTypeDescription
printerSettingsPrinterSettings

A PrinterSettings instance containing printer settings.

| | printDocumentName | String |

A string indicating the document name to be printed.

|

Remarks

Call the Print method to specify the desired options (define the printer name, the number of copies, the paper size, enable double-sided printing, etc.) and a custom document name to print the target document.

Note

PrinterSettings properties, such as PageSettings.Margins or PageSettings.Landscape (accessed using the PrinterSettings.DefaultPageSettings property), do not affect the layout of a printed document. Change the desired settings of a document section (accessed by the Section.Page property) to modify the document page layout properties before printing.

See Also

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace