XpsDocumentWriter.WritingPrintTicketRequired Event

 

Occurs just before a Write or WriteAsync method adds a PrintTicket to a document or print queue.

Namespace:   System.Windows.Xps
Assembly:  System.Printing (in System.Printing.dll)

override WritingPrintTicketRequired : IEvent<WritingPrintTicketRequiredEventHandler,
    WritingPrintTicketRequiredEventArgs>

WritingPrintTicketRequired enables an event handler to substitute a new PrintTicket for the one that is passed to the write operation.

The following four Write and WriteAsync methods do not call the WritingPrintTicketRequired event:

The following example shows how to use the WritingPrintTicketRequired event.

No code example is currently available or this language may not be supported.

The event handler is created in the following example.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: