-- 作者:有点甜
-- 发布时间:2015/1/7 19:08:00
--
Dim flag As Boolean = False Dim tm As String = ProjectPath & "Attachments\\汇款申请.docx" \'指定模板文件 Dim fl As String = ProjectPath & "Attachments\\汇款申请.docx" \'指定目标文件 Dim wrt As New WordReport(Tables("汇款申请单表"),tm,fl) \'定义一个WordReport For Each r As Row In Tables("汇款申请单表").Rows If r("打印") = True Then flag = True Exit For End If Next
For Each r As Row In Tables("汇款申请单表").Rows If r("打印") = True Then wrt.BuildOne(r) End If Next
If flag Then wrt.Show() \'显示报表 End If
|