GET_NUM_DOC_PAGES command
Content Manager OnDemand returns the number of pages in the active document.
Command | Parameters |
---|---|
GET_NUM_DOC_PAGES | None |
- Parameters
- None
- Action
- None
- Return Code
-
- 0
ARS_DDE_RC_NO_ERROR
- 6
ARS_DDE_RC_NOT_LOGGED_ON
- 14
ARS_DDE_RC_NO_ACTIVE_DOC
- Return Data
- Content Manager OnDemand returns the number of pages in the active document.
Refer to the DoDdeCommand function.
char data[50];
long num_pages;
if ( DoDdeCommand( "GET_NUM_DOC_PAGES.", "", data ) )
num_pages = atol( data );