H
hmcheery
Unregistered / Unconfirmed
GUEST, unregistred user!
我在生成EXCEL文件时用的代码如下:try
exapp:=createoleobject('excel.application');
exsheet:=createoleobject('excel.sheet');
exsheet:=exapp.worksheet.open('c:/order.xls');
exapp.displayalerts:=false;
exapp.visible:=true;
except begin
application.MessageBox('have not excel','ss',16);
exit;
end;
运行时exsheet:=exapp.worksheet.open('c:/order.xls');出错提示为:
method 'worksheet'not supported by automation object
exapp:=createoleobject('excel.application');
exsheet:=createoleobject('excel.sheet');
exsheet:=exapp.worksheet.open('c:/order.xls');
exapp.displayalerts:=false;
exapp.visible:=true;
except begin
application.MessageBox('have not excel','ss',16);
exit;
end;
运行时exsheet:=exapp.worksheet.open('c:/order.xls');出错提示为:
method 'worksheet'not supported by automation object