GetType
Get the page type of a Page object.
int GetType( )
Returns an integer value representing the page type. See the EXIST constants defined in oc_const.h, they are:
EXIST_WKS 2
EXIST_PLOT 3
EXIST_MATRIX 5
EXIST_LAYOUT 11
EXIST_EXTERN_WKS 12 (Excel workbook)
EX1
int PageBase_GetType_ex1() { PageBase pbTemp; pbTemp = Project.Pages(); // Get the project's active page if( pbTemp.IsValid() ) printf("Active page is of type %d\n", pbTemp.GetType()); else printf("Active page is not valid\n"); return 0; }
origin.h