With Tables("订单") For i As Integer = .TopPosition To .BottomPosition Dim tm As String = ProjectPath & "Attachments\出库单.doc" '指定模板文件 Dim fl As String = ProjectPath & "Reports\出库单.doc" '指定目标文件 Dim wrt As New WordReport(Tables("出库"),tm,fl) '定义一个WordReport wrt.BuildOne(.rows(i)) wrt.Show() '显示报表 Next End With