XPS with Windows Forms
Asked Answered
H

3

5

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

Hungerford answered 10/10, 2008 at 22:11 Comment(0)
C
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

Christ answered 10/10, 2008 at 22:21 Comment(0)
H
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.

Hemiterpene answered 15/10, 2008 at 20:12 Comment(0)
S
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

Spatola answered 26/6, 2009 at 12:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.