Share via


Printing and Print Preview: Overview

How Do IDetails

MFC supports printing and print preview for your program's documents via class . For basic printing and print preview, simply override your view class's member function — which you must do anyway. That function can draw to the view on the screen, to a printer device context for an actual printer, or to a device context that simulates your printer on the screen.

You can also add code to manage multipage document printing and preview, to paginate your printed documents, and to add headers and footers to them.

What do you want to do?