Quantcast
Viewing all articles
Browse latest Browse all 7205

How to print from RichEditDocumentServer in WPF application

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>