IPrintable Class

class IPrintable

This interface is implemented by objects to support printing and print preview. The methods in this interface provide a means to print a page at time to a CPrintDoc object and to determine the total number of pages the printable object contains.

Defined in: Printable.h

Class Members

virtual int GetPageCount(CPrintDoc* pPrintDoc)

Get number of pages in document.

virtual bool BeginPage(CPrintDoc* pPrintDoc)

Prepare the next page for printing.

virtual bool PrintPage(CPrintDoc* pPrintDoc)

Print the current page to the print document.

virtual bool EndPage(CPrintDoc* pPrintDoc)

Cleanup after printing a page.