Jaa


PrintWorkflowForegroundSession.XpsDataAvailable Event

Definition

Raised when the XPS print data is available to be read. This is done after the SetupRequested event is raised. Register for this event to do UI-dependent work that requires displaying the print content.

// Register
event_token XpsDataAvailable(TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs const&> const& handler) const;

// Revoke with event_token
void XpsDataAvailable(event_token const* cookie) const;

// Revoke with event_revoker
PrintWorkflowForegroundSession::XpsDataAvailable_revoker XpsDataAvailable(auto_revoke_t, TypedEventHandler<PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs const&> const& handler) const;
public event TypedEventHandler<PrintWorkflowForegroundSession,PrintWorkflowXpsDataAvailableEventArgs> XpsDataAvailable;
function onXpsDataAvailable(eventArgs) { /* Your code */ }
printWorkflowForegroundSession.addEventListener("xpsdataavailable", onXpsDataAvailable);
printWorkflowForegroundSession.removeEventListener("xpsdataavailable", onXpsDataAvailable);
- or -
printWorkflowForegroundSession.onxpsdataavailable = onXpsDataAvailable;
Public Custom Event XpsDataAvailable As TypedEventHandler(Of PrintWorkflowForegroundSession, PrintWorkflowXpsDataAvailableEventArgs) 

Event Type

Applies to