how to get the output through printer

snjbmishra's Avatar, Join Date: Nov 2010
Newbie Member
Please solve my problem of

how to send the output of c program to priter for output
xpi0t0s's Avatar, Join Date: Aug 2004
In Windows you just create a printer HDC object and draw your output to that instead of to the screen HDC. It's really easy; if you can display on screen, you can print, *and* you can use exactly the same code. It's all done for you within the WinAPI.
mialuzzatto's Avatar, Join Date: Aug 2015

Please check this.... -