GetReportTree
Find the report tree in the worksheet.
BOOL GetReportTree( TreeNode & tr, uint * pReportUID = NULL, int nReport = 0, int nType = GRT_TYPE_RESULTS, BOOL bTranslate = FALSE )
true if the sheet has the requested report, false if not found
EX1
//Get the reporttree in the active worksheet and print it out. int DataSheet_GetReportTree_Ex1() { Worksheet wks = Project.ActiveLayer(); if( wks ) { uint uid; Tree tr; if( wks.GetReportTree(tr, &uid, 0, GRT_TYPE_RESULTS, true) ) { string strOut; tree_to_str(tr, strOut); // translate from result tree to string, print this string you will see it as a table format out_str(strOut); } } return 0; }
origin.h