PrintWorkflowForegroundSession.XpsDataAvailable Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)