Ihtmldocument2 and Windows and IE versions

Asked

Viewed 59 times

1

Could someone give me a light of what the incompatibility of some versions of the Windows + IE with the use of 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 can get the tables and the contents of cells the way above, this with versions of IE, from 8 to 11, more in some installations of the Windows, It just doesn’t work, you can’t get the table and you can’t get the contents of the cells, like you can’t find in 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?

Know the cause/solution or even some other way to work the html (obtaining, tables, Forms, cells etc. ) that there is no such incompatibility with versions of Windows+IE?

  • Please specify which version of Windows does not work. Or which version of IE does not work to first reproduce the problem. In some cases, people have already been through the problem so it would not be necessary, other cases, even if they have not been through the problem, however, with MVCE, will be able to help you more easily

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.