原
原谅我今天
Unregistered / Unconfirmed
GUEST, unregistred user!
在这段代码中
excelapp:=texcelapplication.Create(application);
excelwkbook:=texcelworkbook.Create(application);
excelwksheet:=texcelworksheet.Create(application);
excelapp.Connect;
except
messagedlg('excel 可能没有安好!',mterror,[mbyes],0);
abort;
end;
excelapp.Workbooks.Add(emptyparam,0 );//提示说Undeclared identifier: 'emptyparam'
excelwkbook.ConnectTo(excelapp.Workbooks[1]);
excelwksheet.ConnectTo(excelwkbook.Worksheets[1] as_worksheet);//提示说Incompatible types: 'IDispatch' and '_Work
sheet'
救命啊
excelapp:=texcelapplication.Create(application);
excelwkbook:=texcelworkbook.Create(application);
excelwksheet:=texcelworksheet.Create(application);
excelapp.Connect;
except
messagedlg('excel 可能没有安好!',mterror,[mbyes],0);
abort;
end;
excelapp.Workbooks.Add(emptyparam,0 );//提示说Undeclared identifier: 'emptyparam'
excelwkbook.ConnectTo(excelapp.Workbooks[1]);
excelwksheet.ConnectTo(excelwkbook.Worksheets[1] as_worksheet);//提示说Incompatible types: 'IDispatch' and '_Work
sheet'
救命啊