What is the best way to display and print XPS files in a Windows Forms application?
I think the easiest way is to use WPF, you can host a WPF control inside a WinForms application - you don't have to rewrite your GUI in WPF or anything like that.
more information here : http://msdn.microsoft.com/en-us/library/ms745781.aspx
On my machine, XPS files open automatically thru IE. I would just drop a WebBrowser control on the form and navigate to the XPS file then call the Print() method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With