IXpsPrintControl::AddPage method
[This documentation is preliminary and is subject to change.]
Applies to: desktop apps only
Converts the passed-in command list into an Xps OM page, and adds it to the IXpsOMPackageTarget implementation that it stores. If IXpsOMPackageTarget is the one returned from the XPS Print API, the page goes to the printer it was initiated on.
Syntax
HRESULT AddPage();
Parameters
This method has no parameters.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| HRESULT | Description |
|---|---|
| S_OK | No error occurred. |
| E_INVALIDARG | An invalid parameter was passed to the returning function. |
Remarks
Requirements
| Minimum supported operating system | Same as Interface / Class |
| Highest IRQL level | N/A (user mode) |
| Callable from DlllMain() | No |
| Callable from services and session 0 | Yes |
| Callable from UI thread | Yes |
See also
Build date: 1/22/2012