One of the advantages of the device contexts as they are implemented in wxPy-thon is that it makes it easy to manage print preview, since most of the functionality comes from just replacing the printer device context with a screen device context. However, the print preview API is a bit different than for regular printing. For one thing, since print preview takes place on screen in a window, wxPy-thon provides a frame class for previewing. The next three sections describe the print preview process.
Was this article helpful?