Printing (GDI+)
With a few minor adjustments to your code, you can send Windows GDI+ output to a printer rather than to a screen. To draw on a printer, obtain a device context handle for the printer and pass that handle to a Graphics constructor. Place your GDI+ drawing commands in between calls to StartDoc and EndDoc.
The following topics cover sending GDI+ output to printers in more detail:
- Sending GDI+ Output to a Printer
- Displaying a Print Dialog Box
- Optimizing Printing by Providing a Printer Handle