RichEditControl.Print(PrinterSettings) Method
Prints the document with the given printer settings.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.XtraRichEdit.v24.2.dll
NuGet Package: DevExpress.Win.RichEdit
#Declaration
public void Print(
PrinterSettings printerSettings
)
#Parameters
Name | Type | Description |
---|---|---|
printer |
Printer |
A Printer |
#Remarks
Call the Print method to print the target document with the specified options: the number of copies, double-sided printing, etc.
Note
Printer
#Example
PrinterSettings printerSettings = new PrinterSettings();
//Set the document pages to print:
printerSettings.FromPage = 2;
printerSettings.ToPage = 3;
//Specify the number of copies:
printerSettings.Copies = 2;
//Print the document:
richEditControl1.Print(printerSettings);