IXpsOMPackageWriter3D::SetModelPrintTicket method (xpsobjectmodel_2.h)

Creates a print ticket with the specified part.

Syntax

HRESULT SetModelPrintTicket(
  [in] IOpcPartUri *printTicketPartName,
  [in] IStream     *printTicketData
);

Parameters

[in] printTicketPartName

The part is added to package and becomes a target of relationship from model part.

[in] printTicketData

A readable stream that holds the 3D model print ticket.

Return value

Returns the appropriate HRESULT error code. Calling this method more than once per package writer returns the error XPS_E_MULTIPLE_PRINTICKETS_ON_DOCUMENT.

Remarks

Call this method at most once per package writer. Calling this method creates a part with content type “application/vnd.ms-printing.printticket+xml”. It is linked from model part with relationship type “http://schemas.microsoft.com/3dmanufacturing/2013/01/printticket” .

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel_2.h

See also

IXpsOMPackageWriter3D