Compartilhar via


COleDocObjectItem::GetPageCount

Call this member function to retrieve the number of pages in the document.

BOOL GetPageCount( 
   LPLONG pnFirstPage, 
   LPLONG pcPages  
);

Parameters

  • pnFirstPage
    A pointer to the number of the document's first page. Can be NULL, which indicates the caller doesn't need this number.

  • pcPages
    A pointer to the total number of pages in the document. Can be NULL, which indicates the caller doesn't need this number.

Return Value

Nonzero if successful; otherwise 0.

Requirements

Header: afxole.h

See Also

Reference

COleDocObjectItem Class

Hierarchy Chart

IPrint::GetPageInfo