欢迎光临
我们一直在努力

把vfp表中的数据导入指定的excel文件中-数据库专栏,其他相关

建站超值云服务器,限时71元/月

 

select cb_zwhz
go top
xlapp = getobject(f:\temp qlinout.xls,excel.sheet)
xlapp.application.visible=.f.
xlapp.application. windows(“sqlinout.xls”).visible = .t.
xlsheet =xlapp.sheets[sheet1]
xlsheet.cells(1,1).value = “month”
xlsheet.cells(1,2).value = “zwcode”
xlsheet.cells(1,3).value = “qty”
xlsheet.cells(1,4).value = “cost”
xlsheet.cells(1,5).value = “money”

i=1
select cb_zwhz
do while not eof ()
  xlsheet.cells(i+1,1).value=month
  xlsheet.cells(i+1,2).value=zwcode
  xlsheet.cells(i+1,3).value=qty
  xlsheet.cells(i+1,4).value=cost
  xlsheet.cells(i+1,5).value=money
  skip
  i=i+1
enddo 
xlapp.save
xlapp.close

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 把vfp表中的数据导入指定的excel文件中-数据库专栏,其他相关
分享到: 更多 (0)