for I := 0 to FileListBox1.Items.Count - 1 do
begin
if ADOTable1.Active then ADOTable1.Close;
ADOTable1.TableName := FileListBox1.Items[I];
RxLabel1.Caption := '正在转换文件' + FileListBox1.Items[I] + '的数据...';
Application.ProcessMessages;
try
ADOTable1.Open;
ProgressBar1.Max := ADOTable1.RecordCount;
ProgressBar1.Position := 0;
Excelapplication1.Workbooks.Add(EmptyParam, 0);
K := 2;
Temp := Excelapplication1.ActiveCell;
for J := 0 to ADOTable1.FieldCount - 1 do
begin
Temp.Value := ADOTable1.Fields[J].Displaylabel;
Temp := Temp.Next;
end;