Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:如何自设导出路径

1楼
狐哥 发表于:2010/2/25 15:49:00

请教各位老师:

Dim
ex as New Exporter
ex
.SourceTableName = "订单"
ex
.FilePath = "c:\Data\订单.xls" '指定目标文件 ---如何用 SaveFileDialog 来自定义路径和文件名??
ex.Format = "Excel"
ex.Fields = "日期,客户,数量,单价"
ex.Filter = "[产品] = 'PD01'"
ex.Export()

2楼
czy 发表于:2010/2/25 16:52:00
Dim f as New SaveFileDialog
f.Filter = "Excel文件|*.Xls"
If f.ShowDialog = DialogResult.Ok Then
    Dim ex as New Exporter
    ex.SourceTableName = "订单"
    ex.FilePath = f.FileName
    ex.Format = "Excel"
    ex.Fields = "日期,客户,数量,单价"
    ex.Filter = "[产品] = 'PD01'"
    ex.Export()
End If
3楼
狐哥 发表于:2010/2/26 9:45:00
万分感谢!
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02734 s, 2 queries.