Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
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
[out] pnFirstPage
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.
[out] pcPages
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
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | docobj.h |