IPrint::GetPageInfo
Retrieves the number of a document's first page and the total number of pages.
HRESULT GetPageInfo(
LONG *nFirstPage, //Pointer to number of first page
LONG *pcPages //Pointer to total number of pages
);
Parameters
-
pnFirstPage
-
[out] Pointer to the page number of the first page. May be NULL, indicating that the caller doesn't need this number. If IPrint::SetInitialPageNum has been called, this parameter should contain the same value passed to that method. Otherwise, the value is the document's internal first page number.
-
pcPages
-
[out] Pointer to the total number of pages in this document. May be NULL, indicating that the caller doesn't need this number.
Return Value
This method supports the standard return value E_UNEXPECTED, as well as the following:
-
S_OK
-
The requested page information was obtained.
QuickInfo
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in docobj.h.