Dim clbx1 As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox1")
Dim clbx2 As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox2")
For Each j As Integer In clbx2.CheckedIndices
Dim tm As String = ProjectPath & "模板文件\" & clbx2.Items(j) '指定模板文件
For Each i As Integer In clbx1.CheckedIndices
Dim fl As String = ProjectPath & "成品文件\" & clbx1.items(i)("案号") & clbx2.Items(j) '指定目标文件
Dim wrt As New WordReport(Tables("表A"),tm,fl) '定义一个WordReport
Dim dr As DataRow = DataTables("表A").Find("_Identify = '" & clbx1.items(i)("_Identify") & "'")
If dr IsNot Nothing
'Dim nm As String = CurrentTable.Name
'Dim wrt As New WordReport(Tables("nm"),tm,fl) '定义一个WordReport
'Dim dr As DataRow =DataTables("nm").Find("_Identify = '" & clbx1.items(i)("_Identify") & "'")
wrt.BuildOne(dr)
wrt.quit
Dim proc As new Process
proc.File = fl
proc.Start
End If
Next
Next