在按钮上代码 Dim rs As List(Of Row) = Tables("日病情记录").GetCheckedRows Tables("日病情记录").ShowCheckBox = True If rs.Count > 0 Then '如果存在符合条件的行 Dim tm As String = ProjectPath & "Attachments\日病情记录.doc" '指定模板文件 Dim fl As String = ProjectPath & "Reports\日病情记录.doc" '指定目标文件 Dim wrt As New WordReport(Tables("日病情记录"), tm, fl) '定义一个WordReport For Each r As Row In rs '逐行生成报表 wrt.BuildOne(r) Next wrt.Show() '显示报表 End If 这样可以开启复选框了吗?
|
[此贴子已经被作者于2023/2/4 16:37:25编辑过]