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