--
Dim t As Table = Tables("web检查问题库子表")
If t.Rows.Count > 0 Then \'如果存在符合条件的行
Dim tm As String = ProjectPath & "Attachments\\问题照片导出模板.doc" \'指定模板文件
Dim fl As String = ProjectPath & "Reports\\问题照片导出模板.doc" \'指定目标文件
Dim wrt As New WordReport(Tables("web检查问题库子表"), tm, fl) \'定义一个WordReport
For Each r As Row In t.Rows
wrt.BuildOne(r)
Next
wrt.Show() \'显示报表
End If