RichEditDocumentServer.Print(DXPrinterSettings) Method
Prints the document with the given cross-platform printer settings.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
printerSettings | DXPrinterSettings | An object that contains cross-platform printer settings. |
Example
The following code sample specifies printing settings and prints the loaded document:
using DevExpress.XtraRichEdit;
using DevExpress.Drawing.Printing;
using RichEditDocumentServer wordProcessor = new RichEditDocumentServer();
wordProcessor.LoadDocument(@"C:\\Downloads\Document.docx");
DXPrinterSettings printerSettings = new DXPrinterSettings();
printerSettings.Copies = 2;
printerSettings.PageRange = "2-3";
wordProcessor.Print(printerSettings);
See Also