IPrint::GetPageInfo method

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

Syntax


HRESULT GetPageInfo(
  [out] LONG *pnFirstPage,
  [out] LONG *pcPages
);

Parameters

pnFirstPage [out]

A pointer to a variable that receives the page number of the first page. This parameter can be NULL, indicating that the caller is not interested in 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]

A pointer to a variable that receives the total number of pages in this document. This parameter can be NULL, indicating that the caller is not interested in this number.

Return value

This method can return the standard return values E_UNEXPECTED and S_OK.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

DocObj.h

IDL

DocObj.idl

IID

IID_IPrint is defined as b722bcc9-4e68-101b-a2bc-00aa00404770

See also

IPrint

 

 

Show: