这段代码不应该报错,报什么错?
Dim tm As String = ProjectPath & "Attachments\入院病历.doc" '指定模板文件Dim fl As String = ProjectPath & "Reports\入院病历.doc" '指定目标文件Dim wrt As New WordReport(Tables("住院记录"),tm,fl) '定义一个WordReportwrt.Build() '逐行生成报表wrt.quit