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 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
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.
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
Source: https://habr.com/ru/post/1277665/More articles:.hide () ,. show (), tables and IE - jquerySaving compiled PCRE regular expressions in C / C ++ - c ++What's the best way to validate a user-entered URL in a Cocoa app? - urlDoes PHP have a DEBUG symbol that can be used in code? - debuggingWhy does handling WM_NCCALCSIZE make my window jump? - windowsTesting Delphi DLL Crashes VB6 IDE - dllphpBB equivalent for Ruby on Rails - ruby-on-railsHow to keep a repeating window of time - timezoneSuggestions for requirements development tools that support CMMI goals - process-managementWhat is the best way to use jQuery: with HTML or CSS for formatting - jqueryAll Articles