- Method
- short GetDocNumPages(
- VARIANT * pNumPages )
- Parameters
- pNumPages
- Points to a variable to receive the number of pages in the open
document. On return, this variable is set to type VT_I4.
- Description
- The number of pages in the open document is returned in the specified
variable.
- Return Value
- Refer to return codes.
- See Also
- OpenDoc, GetDocCurrentPage,
and SetDocCurrentPage methods
C/C + +
CArsOle * pArsCtrl;
VARIANT vari;
long num_pages;
short rc;
.
.
rc = pArsCtrl->GetDocNumPages( &vari );
if ( rc != ARS_OLE_RC_SUCCESS )
ERROR;
num_pages = var.lVal;
.
.
Visual Basic
Dim rc As Integer
Dim num_pages As Variant
.
.
rc = ArsOle.GetDocNumPages (num_pages)
If rc <> ARS_OLE_RC_SUCCESS Then
MsgBox "ERROR"
End
End If
.
.