I am trying to copy the data from a table inside a TWebBrowser into excel but with no success. With the first command I am getting everywhere inside the excel the word "object" & with the second command I am getting the same value everywhere inside the excel.
var
Table: OleVariant;
Begin
Table := WebBrowser1.OleObject.Document.all.tags( 'TABLE' ).item( strtoint( edit3.Text ) );
WS.range[ws.cells[1, 1], ws.cells[Table.Rows.Length, Table.Rows.Item(1).Cells.Length]].value:=Table; ?1?
WS.range[ws.cells[1, 1], ws.cells[Table.Rows.Length, Table.Rows.Item(1).Cells.Length]].value:=Table.innertext; ?2?
Does anybody know the sollution?
All I want to do is to implement "Export to excel" option of a webbrowser into Delphi2007...... When I am using this option to export this 12000 rows table it takes less than a minute to export the table from any web browser from windows. Trying to implement this in Delphi using 2D Array it takes 10 minutes... Trying to implement the export with parsing technique (Stringlists, Pos(tr), pos (td) & some other string functions) it takes a long... Hence, what are the commands of a webbrowser to export an html table to excel that I have to convert them to Delphi? Should I use javascript inside Delphi? Should I use pointers?...Any idea? Thank you in advance.