老师,按照您的方法将导出按钮代码设置
Dim tm As String = ProjectPath & "Attachments\报表.doc" '指定模板文件
Dim fl As String = ProjectPath & "Reports\报表.doc" '指定目标文件
Dim wrt As New WordReport(Tables("信息"),tm,fl) '定义一个WordReport
wrt.Build() '逐行生成报表
wrt.Show() '显示报表
打印代码设置为
Dim tm As String = ProjectPath & "Attachments\报表.doc" '指定模板文件
Dim fl As String = ProjectPath & "Reports\报表.doc" '指定目标文件
Dim wrt As New WordReport(Tables("信息"),tm,fl) '定义一个WordReport
wrt.Build() '逐行生成报表
wrt.Show() '显示报表
wrt.print()
wrt.quit()
代码正确吗????我的模板中有关联表数据,为什么我在点击导出或者打印按钮后出现程序假死的现象???