Export (0) Print
Expand All

IXpsOMDocumentSequence::SetPrintTicketResource method

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

Syntax


HRESULT SetPrintTicketResource(
  [in]  IXpsOMPrintTicketResource *printTicketResource
);

Parameters

printTicketResource [in]

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

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

Xpsobjectmodel.h

IDL

XpsObjectModel.idl

See also

IXpsOMDocumentSequence
XML Paper Specification

 

 

Community Additions

ADD
Show:
© 2014 Microsoft