This example utilizes the DevExpress.XtraRichEdit.Printing.XpfRichEditPrinter descendant to print the document loaded into the RichEditDocumentServer instance. A custom method iterates all available printers and chooses the one that contains a word "Canon" in its name.
Starting from v2014 vol.1.8 (and also v2013 starting from vol.2.12) the DevExpress.XtraRichEdit.Printing.XpfRichEditPrinter class is not capable of creating fixed documents from the RichEditDocumentServer instance. A new class RichEditDocumentXpfPrinter should be used instead. The updated example utilizes the RichEditDocumentXpfPrinter.CreateFixedDocument method to create a fixed document.
↧
How to print from RichEditDocumentServer in WPF application
↧