void html_test()
{
OHTML doc;
BOOL bRet = doc.ReadFile("c:\\temp\\html\\test.html");
if( bRet )
{
StringArray headers, data;
int nTables = doc.GetTableCount();
for(int table=0; table<nTables; table++)
{
string strCaption;
bRet = doc.GetTableCaption(table, strCaption);
int nRows = doc.GetRowCount(table);
int nCols = doc.GetColCount(table);
for(int col=0; col<nCols; col++)
{
bRet = doc.GetColHeader(table, col, headers);
bRet = doc.GetColData(table, col, data);
}
}
}
}