What is the best way to display and print XPS files in a Windows Forms application?
Asked
Active
Viewed 3,900 times
3 Answers
4
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

Nir
- 29,306
- 10
- 67
- 103
3
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.

Jason Z
- 13,122
- 15
- 50
- 62
0
I just call Process.Start(XpsRchVw.exe, "pathtofile") if you have xps viewer EP installed then this will open your xps in xpsviewer and allow you to use it to print edit etc binks