From Tracker Software PDF SDK
Revision as of 03:16, 15 June 2015 by Dsbot (Automatic page editing by robot)
The PrintToDC method prints a page or rectangular block into specified printer's device context using color data from a specified page.
HRESULT PrintToDC([in] HANDLE_T hDC, [in] RECT* stDestRect, [in] RECT* stSrcRect, [in, defaultvalue(0)] ULONG nFlags);
- [in] Specifies printer's device context.
- [in] Pointer to the destination rectangle on printer's device context. This parameter may NOT be NULL.
- [in] Pointer to the source rectangle on the image page to print. If this parameter is NULL then the whole page will be printed.
- [in, defaultvalue(0)] This is reserved and should be 0.
Returns S_OK if operation was successful or error code in other cases.