CPrintInfo::GetMaxPage
Call this function to retrieve the number of the last page of the document.
UINT GetMaxPage( ) const;
Return Value
The number of the last page of the document.
Remarks
This value is stored in the CPrintDialog object referenced by the m_pPD member.
Requirements
Header: afxext.h