XpsDocumentWriter::WritingPrintTicketRequired Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public:
event WritingPrintTicketRequiredEventHandler^ WritingPrintTicketRequired {
	virtual void add(WritingPrintTicketRequiredEventHandler^ value) override;
	virtual void remove(WritingPrintTicketRequiredEventHandler^ value) override;
}

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: