![]() ![]() InputBin is an enum and doesn't have an option for just setting as the name of one of the available bins. How to install Microsoft XPS Document Writer in Windows 10 1,282 views 4 Dislike Share Save Bob Lin 238 subscribers After a Windows 10 update, you may loss the Microsoft XPS. ![]() I can't see any easy way to set the InputBin for the PrintTicket. PrintQueue.AddJob("name", "file", false, pt) I've looked at this resource, (v=vs.110).aspx, but can't see how I can get the PrintPageEventHandler to render the XPS document.Īny ideas on how I could proceed? Help would be greatly appreciated!īased on the below answer, I can send a PrintTicket when I add the job, like this: PrintTicket pt = printQueue.DefaultPrintTicket I would prefer to use the PrintDocument method but I can't figure out how to get PrintDocument to render/print an XPS document. XPS files created using this feature can be easily opened using XPS Viewer that also available in Windows 10. It let you create an XPS file of content available on any document or web page without using a third-party program. However, I can't define specific settings here, like paper source, number of copies, etc. Microsoft XPS Document Writer is a handy feature that comes preinstalled in Windows. I can come close with the System.Printing AddJob method. That is, there can be no user interaction to print. The program needs to programmatically print the document with these settings. ![]() XPS file and specifies some printer settings (number of copies, paper tray, etc). ![]()
0 Comments
Leave a Reply. |