IXpsOMDocumentSequence::SetPrintTicketResource method (xpsobjectmodel.h)

Sets the job-level print ticket resource for the document sequence.

Syntax

HRESULT SetPrintTicketResource(
  [in] IXpsOMPrintTicketResource *printTicketResource
);

Parameters

[in] printTicketResource

A pointer to the IXpsOMPrintTicketResource interface of the job-level print ticket that will be set for the document sequence. If the document sequence has a print ticket resource, a NULL pointer will release it.

Return value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

Remarks

If the document contains an IXpsOMPrintTicketResource interface when this method is called, that interface is released before the new IXpsOMPrintTicketResource interface, which is passed in printTicketResource, is set.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel.h

See also

IXpsOMDocumentSequence

XML Paper Specification