J
Jesse_xhl
Unregistered / Unconfirmed
GUEST, unregistred user!
with query1 do
begin
i := 2;
first;
while not Eof do
begin
MsExcel.Worksheets['sheet1'].Range[Chr(65)+IntToStr(i)].Value := fields[0].AsString ;
......
......
......
这样导出的只有资料没有字段,如何才能把字段名也导出到Excel呢?
begin
i := 2;
first;
while not Eof do
begin
MsExcel.Worksheets['sheet1'].Range[Chr(65)+IntToStr(i)].Value := fields[0].AsString ;
......
......
......
这样导出的只有资料没有字段,如何才能把字段名也导出到Excel呢?