打分按钮你可以这样写。
Dim ps As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName("WinWord")
For Each p As System.Diagnostics.Process In ps
If p.MainWindowTitle = Nothing Then p.kill
Next
system.Threading.Thread.sleep(3000)
Dim wbr As WinForm.WebBrowser = e.Form.Controls("WebBrowser1")
Dim tm As String = ProjectPath & "Attachments\周计划word个人报表.doc" '指定模板文件
Dim fl As String = ProjectPath & "Reports\个人报表" & Tables("周表").Current("姓名") & " " & Tables("周表").Current("编号") & " " & Date.Today & ".doc" '指定目标文件
Dim wrt As New WordReport(Tables("周表"),tm,fl) '定义一个WordReport
wrt.Build() '逐行生成报表
wrt.Quit()
wbr.AddRess = fl