XpsDocumentWriter::WritingPrintTicketRequired Event
.NET Framework (current version)
Occurs just before a Write or WriteAsync method adds a PrintTicket to a document or print queue.
Assembly: System.Printing (in System.Printing.dll)
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:
Write(String)
Write(String, XpsDocumentNotificationLevel)
WriteAsync(String)
WriteAsync(String, XpsDocumentNotificationLevel)
The following example shows how to use the WritingPrintTicketRequired event.
The event handler is created in the following example.
.NET Framework
Available since 3.0
Available since 3.0
Show: