Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i want get image from printer when other application print. how can i do that wiout using virtual printer or print driver. i want use hook api or others. hook spool api or gdi api? i hooked createdcw, create a dc use createcompatibledc(printerdc) and return the memdc, but it cannot work, i also create a memdc use createcompatibledc(null) and return, that cannot work too…
Posted

1 solution

This article shows how to use the printing API.

Printing without the Document/View framework[^]

Look for StartDoc/StartPage/EndPage/EndDoc. You may be able to intercept those GDI functions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900