How work with Word and Excel in Delphi?
问题 I use Delphi X10 and Word 2016 64-bit on Windows 10 64-bit. I always used ComObj. for example: uses ComObj; procedure TForm1.RzBitBtn1Click(Sender: TObject); var Excel: variant; i, j: word; begin Excel := CreateOleObject('Excel.Application'); Excel.Workbooks.Open('file.xls'); for i := 1 to 5 do for j := 1 to 5 do StringGrid1.Cells[j, i] := Excel.Sheets[1].Cells[i, j].Text; end; But, i want to use autocompleate for Excel methods. I read what i should import type library, but i cant find type