Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IXpsDocumentPackageTarget3D::GetXpsOMPackageWriter3D method

Gets a new IXpsOMPackageWriter3D object for the document package.


HRESULT GetXpsOMPackageWriter3D(
  [in]           IOpcPartUri           *documentSequencePartName,
  [in, optional] IOpcPartUri           * discardControlPartName,
  [in]           IOpcPartUri           *modelPartName,
  [in]           IStream               *modelData,
  [out]          IXpsOMPackageWriter3D **ppWriter3D


documentSequencePartName [in]

The root part of XPS payload.

discardControlPartName [in, optional]

The discard control part for the XPS payload.

modelPartName [in]

Name of the part which will hold the 3D model. The part’s content type is “application/”. It is linked from package root with relationship type “” .

modelData [in]

A readable stream which holds 3D model description. The model description may be UTF16 encoding of XML document, but for XPS OM and XpsPrint, this is a BLOB passing through. The GetXpsOMPackageWriter3D method attempts to move the provided stream’s read pointer to the beginning of the stream, but the method call will not fail if the stream does not support the Seek method.

ppWriter3D [out]

Returns the writer which may be used to send XPS content and textures for the 3D model.

Return value

Returns the appropriate HRESULT error code.


Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]





See also




© 2017 Microsoft