Need help modifying PrintTickets via XML

Performing some printing management work through the System.Printing infrastructure (the main classes are PrintQueue, PrintTicket, and PrinterCapabilities). As in most cases with which I have been working recently, there is very little information about this. I hope to collect some useful information on this issue to help solve this topic.

PrintTickets give developers a good handle to most common print configuration options. This is lucky because I would not want to do it in the old DEVMODE way (you can convert the DEVMODE binary stream to and from PrintTickets, which is convenient!).

The problem is that there are several printers, each of which has unique configurations. They do not fall into the good properties and listings created for PrintTickets. If you need to configure a printer whose settings are outside this interface, you need to serialize your PrintTicket in xml and change it there.

When you work with PrintTicket xml, your life is controlled by three or more schemes: two Microsoft and one or more printer manufacturers. Two MS schemes

One of the first problems I encountered with raw XML was that I cannot find an XSD that spans these schemas.

Does anyone know where I can get the XSD for these circuits?

The second big problem I came across was matching data input with the PrintTicket XML test. Optimally, I would like to enter user input, say "Tray 3", and map this using PrintCapabilities to determine the value of the setting parameter for this function. The documentation for print options is somewhat obscure, and I'm afraid that its full extreme cases will come back and bite me if I don't do it right.

Does anyone have any good examples for modifying PrintTicket XML?

This is a good starting point for this wiki ...


Update on Question 1:

, WinHEC PPT, 2005 , , Windows Experience - Documents and Printing (, ?):

,

XSD. 1.0 , . http://www.microsoft.com/whdc/xps/downloads.mspx

PrintSchema, PrintVerifier. Print Verifier :

+3
3

:

http://social.msdn.microsoft.com/forums/en-US/windowsxps/thread/f5859148-26f1-4e89-949c-180413bcc898/

CAnderson Jo0815 PrintCueue PrintCapabilities, , . XML DefaultPrintTicket XMLDocument, , , XMLDocument PrintTicket . (, , , PrintTicket .)

, PrintTicket.

+1

There is currently a print circuit specification (July 28, 2013) on the Microsoft website at

http://msdn.microsoft.com/en-us/windows/hardware/gg463385.aspx

It has a 300+ specification, as well as a scheme for http://schemas.microsoft.com/windows/2003/08/printing/printschemaframework

0
source

All Articles