X
xgwzw
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button6Click(Sender: TObject);
var
Excel,Sheet,MyworkBook1:Variant;
I,J,X,Y:Integer;
begin
Try
Excel:=UnAssigned;
Excel:=CreateOleObject('Excel.Application');
Excel.Visible:=False;
Excel.WorkBooks.Add;
excel.worksheets.add;
Except
showmessage('本机未安装EXCEL,本功能必须在安装有EXCEL的电脑上才能运行!');
Abort;
End;
MyworkBook1:=Excel.workBooks[1];
MyWorkBook1.saveas('D:/12.xls');
MyWorkBook1:= UnAssigned;
Excel:=UnAssigned;
end;
var
Excel,Sheet,MyworkBook1:Variant;
I,J,X,Y:Integer;
begin
Try
Excel:=UnAssigned;
Excel:=CreateOleObject('Excel.Application');
Excel.Visible:=False;
Excel.WorkBooks.Add;
excel.worksheets.add;
Except
showmessage('本机未安装EXCEL,本功能必须在安装有EXCEL的电脑上才能运行!');
Abort;
End;
MyworkBook1:=Excel.workBooks[1];
MyWorkBook1.saveas('D:/12.xls');
MyWorkBook1:= UnAssigned;
Excel:=UnAssigned;
end;