示例三
将产品PD01的订单导出为Excel格式保存,并只导出指定的列:
Dim ex as New Exporterex.SourceTableName = "订单" '指定导出表ex.FilePath = "c:\Data\订单.xls" '指定目标文件ex.Format = "Excel" '导出格式为Excelex.Fields = "日期,客户,数量,单价" '指定导出字段ex.Filter = "[产品] = 'PD01'" '指定导出条件ex.Export() '开始导出