IXpsPrintJobStream::Close method (xpsprint.h)

[IXpsPrintJobStream::Close is not supported and may be altered or unavailable in the future. ]

Closes the stream and indicates to the print job that the entire document has been written to the print queue by the application.

Syntax

HRESULT Close();

Return value

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

Remarks

After Close has been called, all subsequent attempts to write data to the stream will fail.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header xpsprint.h

See also

Documents

IXpsPrintJobStream

XML Paper Specification