ExcelApp:Variant; str1:string; i: LongInt; f: Double; len:integer; begin ExcelApp:=CreateOleObject('Excel.Application'); //ExcelApp.visible:=true; ExcelApp.Caption:='应用程序调用 Microsoft Excel'; if OpenDialog2.Execute then begin ExcelApp.workBo oks.Open
首页给个有中文说明的例子,下面的例子很多大家可以多测试。 代码如下:[removed]<!– function readExcel() { var excelApp; var excelWorkBook; var excelSheet; try{ excelApp = new ActiveXObject(“Excel.Application”); excelWorkBook = excelApp.Workbooks.open(“C:\\XXX.xls”); excelSheet = oWB