Dim doc As New PrintDoc '定义一个报表对象Dim rm As New prt.RenderImage '定义一个图片对象Dim ewm As WinForm.BarCode = e.Form.Controls("二维码")rm.Image = ewm.GetImagedoc.Body.Children.Add(rm) '将图片对象加入报表Doc.Preview() '预览
'doc.Print()