IPrint::GetPageInfoIPrint::GetPageInfo*
*Contents  *Index  *Topic Contents
*Previous Topic: IPrint
*Next Topic: IPrint::Print

IPrint::GetPageInfo

HRESULT GetPageInfo(
    LONG *pnFirstPage,
    LONG *pcPages
   );

Retrieves the number of a document's first page and the total number of pages.

pnFirstPage
[out] Address of the page number of the first page. Can be NULL, indicating that the caller doesn't need this number. If the IPrint::SetInitialPageNum method 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] Address of the total number of pages in this document. Can be NULL, indicating that the caller doesn't need this number.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.