XPS with Windows Forms

What is the best way to display and print XPS files in a Windows Forms application?

+4
source share
3 answers

I think the easiest way is to use WPF, you can place the WPF control inside the WinForms application - you do not need to rewrite your GUI in WPF or something like that.

Additional information here: http://msdn.microsoft.com/en-us/library/ms745781.aspx

+4
source

On my machine, XPS files automatically open through IE. I just remove the WebBrowser control in the form and go to the XPS file and then call the Print () method.

+3
source

I just call Process.Start (XpsRchVw.exe, "pathtofile") if you have the XPS EP viewer installed, this will open your xps in xpsviewer and allow you to use it for printing, etc. Binks

0
source

Source: https://habr.com/ru/post/1277665/


All Articles