IIXC_Page::PrintToDC Method
From PDF XChange PDF SDK
Line 20: | Line 20: | ||
:[in] Specifies source rectangle on the image page to print. If this parameter is NULL then the whole page will be printed. | :[in] Specifies source rectangle on the image page to print. If this parameter is NULL then the whole page will be printed. | ||
;dwFlags | ;dwFlags | ||
− | :[in, defaultvalue(0)] | + | :[in, defaultvalue(0)] This is reserved and should be 0. |
== Return Value == | == Return Value == |
Revision as of 10:32, 18 May 2015
The PrintToDC method prints a page or rectangular block into specified printer's device context using color data from a specified page.
Contents
Syntax
HRESULT PrintToDC([in] HANDLE_T hDC, [in] RECT* pDestRect, [in] RECT* pSrcRect, [in, defaultvalue(0)] ULONG dwFlags);
Parameters
- hDC
- [in] Specifies printer's device context.
- pDestRect
- [in] Specifies destination rectangle on printer's device context. This parameter may NOT be NULL.
- pSrcRect
- [in] Specifies source rectangle on the image page to print. If this parameter is NULL then the whole page will be printed.
- dwFlags
- [in, defaultvalue(0)] This is reserved and should be 0.
Return Value
Returns S_OK if operation was successful or error code in other cases.