FindPage
Find a Page object by name, can be short name or long name.
Page FindPage( LPCSTR lpcszName, int nType = EXIST_WKS, int nAlsoCanbeType = EXIST_MATRIX, BOOL bAlsoCanbeLongName = true )
Returns a valid Page or an invalid Page object.
EX1
void Project_FindPage_EX() { WorksheetPage wp; wp.Create("Origin");//create a worksheetpage if( wp.IsValid() ) printf("%s Create successfully!\n",wp.GetName()); else { printf("wp cann't create.\n"); return ; } Page wp2 = Project.FindPage(wp.GetName()); if(wp2) printf("Find Page %s",wp2.GetName()); return; }
Project::Pages, Project::WorksheetPages, Project::Notes, Project::MatrixPages, Project::GraphPages, Project::LayoutPages, Project::LooseDatasetNames, Project::DatasetNames
origin.h