excelworksheet1,请大家帮忙看看,用这行怎么只能导出一行数据 (问题一)
for j:=1 to adoquery1.RecordCount do
for i:=1 to adoquery1.fields.Count do
begin
excelworksheet1.Cells.Item[j,i]:=adoquery1.fields[i-1].AsString;
end;在2000下调试成功了在xp里怎么用不了呢? (问题二)
我家了Excelxp 到uses里了。
在线..............................
for j:=1 to adoquery1.RecordCount do
for i:=1 to adoquery1.fields.Count do
begin
excelworksheet1.Cells.Item[j,i]:=adoquery1.fields[i-1].AsString;
end;在2000下调试成功了在xp里怎么用不了呢? (问题二)
我家了Excelxp 到uses里了。
在线..............................
while not adoquery1.Eof do
begin
for i:=1 to adoquery1.fields.Count do
begin
excelworksheet1.Cells.Item[j,i]:=adoquery1.fields[i-1].AsString;
end;
adoquery1.Next;
end;
啥错误?跟2000和XP没关系吧?我只用XP都好好的。
是不是在XP中文件已经打开了?或者没有安装OFFICE?
没有错误,就是看到打开了excel的book1,然后就突然关掉。就什么都没有了。