This method specifies the number of the last page of the document.
void SetMaxPage( UINT nMaxPage );