IXpsOMObjectFactory1::CreatePackage1 method (xpsobjectmodel_1.h)
Creates an IXpsOMPackage1 interface that serves as the root node of an XPS object model document tree.
Syntax
HRESULT CreatePackage1(
IXpsOMPackage1 **package
);
Parameters
package
A pointer to the new IXpsOMPackage1 interface.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the table that follows. For information about XPS document API return values that are not listed in this table, see XPS Document Errors. | Return code | Description | |-------------|-----------------------| | S_OK | The method succeeded. | | E_POINTER | package is NULL. |
Requirements
Requirement | Value |
---|---|
Header | xpsobjectmodel_1.h |