打印之前,筛选一下就行。如
Tables("表A").Filter = "第一列 = '3'"
Dim doc As New PrintDocDim rt As New prt.RenderTextrt.DataBinding.DataSource = BindTables("表A") '将rt绑定到订单表rt.Text= "[Fields!第一列.Value]" '设置打印字段doc.body.Children.Add(rt)doc.Preview()