IXpsDocumentConsumer::GetNewEmptyPart method

The GetNewEmptyPart method creates a new XPS part.

Syntax

HRESULT GetNewEmptyPart(
  const wchar_t     *uri,
  REFIID            riid,
  void              **ppNewObject,
  IPrintWriteStream **ppWriteStream
);

Parameters

uri

The URI for the new part to be created.

riid

A reference identifier (REFIID) for one of the following interfaces:

ppNewObject

A pointer to the new object to be created.

ppWriteStream

A data stream object that the part will be written to. Each part is associated with a data stream object.

Return Value

GetNewEmptyPart returns an HRESULT.

Remarks

A filter can create new XPS parts by using the GetNewEmptyPart method. Typically, the filter receives XPS parts from the inter-filter object.

Requirements

   
Target Platform Desktop
Header filterpipeline.h

See Also

IFixedDocument

IFixedPage

IPartColorProfile

IPartFont

IPartImage

IPartPrintTicket

IPartThumbnail

IXpsDocumentConsumer