庸
庸亲王
Unregistered / Unconfirmed
GUEST, unregistred user!
Excel := CreateOleObject('Excel.Application');
Excel.Visible := False;
Excel.Workbooks.Add;
Excel.WorkSheets[1].Activate;
for I := 1 to LsvOpenLog.Columns.Count do
begin
Application.ProcessMessages;
Excel.Cells.Item[1, I] := LsvOpenLog.Columns[I - 1].Caption;
end;
导入到Excel2000正常,导入到2005不正常,请问这是什么原因?
Excel.Visible := False;
Excel.Workbooks.Add;
Excel.WorkSheets[1].Activate;
for I := 1 to LsvOpenLog.Columns.Count do
begin
Application.ProcessMessages;
Excel.Cells.Item[1, I] := LsvOpenLog.Columns[I - 1].Caption;
end;
导入到Excel2000正常,导入到2005不正常,请问这是什么原因?