foxtable 连续打开(打印)一组 word文件出错,会出现"normal.dotm正由另一word会话编辑,如果您用原名保存此文档,将会改写在其他会话中所做的任何更改。是否仍用原名保存文档。“跳出对话框。很麻烦,请哪位同学指导一下,不胜感激。另,我的代码:
If Forms("单").Controls("CheckBox2").checked=True Then
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.Print()
wrt.quit
End If
If Forms("单").Controls("CheckBox3").checked=True Then
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.quit
End If