不知道什么原因:但可以试试这个:
if dw_1.rowcount()>0 then
string ls_docname,ls_path
integer li_result
ls_docname=string(today())+replace(replace(string(now()),6,1,""),3,1,"")
li_result = GetFolder("提取目录路径",ls_path)
if li_result=1 then
ls_docname = ls_path +"\"+ ls_docname
dw_1.saveasascii(ls_docname+".xls","~t","") //这种方式最接近
messagebox("提示","导出成功")
else
messagebox("提示","导出失败")
end if
end if