IHTMLDocument2
?
Example:
IDoc := CreateComObject(Class_HTMLDOcument) as IHTMLDocument2;
v := VarArrayCreate([0, 0], VarVariant);
v[0] := xHtml;
IDoc .Write(PSafeArray(System.TVarData(v).VArray));
IDoc .designMode := 'off';
ovTable := (IDoc.all.tags('TABLE') as IHTMLElementCollection).item(1, 0);
ovTable.Rows.Item(I).Cells.Item(J).InnerText;
In most versions of windows , XP, 7-32x, 7-64x, 8-32x, 8-64x this works normally, I get the tables and the contents of the cells in the above way, this with IE versions, from 8 to 11, more in some installations of Windows , this simply does not work, can not get the table and nor the contents of cells, as if you could not find the html
ovTable := (IDoc.all.tags('TABLE') as IHTMLElementCollection).item(1, 0);
ovTable.Rows.Item(I).Cells.Item(J).InnerText;
Has anyone ever had the same problem?
You know the cause / solution or even some other way of working on the html (getting tables, forms