使用Access值填写Word文档
我找到了教程,向您展示如何使用Access中的值填充Word文档
Hi,
I''ve found a tutorial that shows you how to fill in Word documents with values from Access
为了使代码按所示方式工作,您应该将其放在Access客户表单上的按钮单击事件中。你这样做了吗?
另外,验证代码中word文档的文件路径是否正确。
如果以上是不是答案,代码中断代码并查明代码是否执行到断点。
In order for the code to work as shown, you should have placed it in a button click event on the Access Customer Form. Did you do that?
Also, verify that the file path to your word doc is correct in your code.
If the above is not the answer, place code breaks in the code and find out if your code executes to the breakpoint.
为了使代码能够如图所示,您应该将其放在Access客户表单上的按钮单击事件中。你这样做了吗?
另外,验证代码中word文档的文件路径是否正确。
如果以上是不是答案,代码中断代码并查明代码是否执行到断点。
In order for the code to work as shown, you should have placed it in a button click event on the Access Customer Form. Did you do that?
Also, verify that the file path to your word doc is correct in your code.
If the above is not the answer, place code breaks in the code and find out if your code executes to the breakpoint.
代码在一个按钮下,一切都很好。该文件位于正确的位置并且所有代码都已执行,但此代码是为使用Office 2003而编写的,并且它似乎与Office 2007完全兼容。
赞我上面说过,代码执行时, WINWORD.exe 进程在任务管理器中运行,但实际文档没有出现在前台。
我我只是想知道是否有人知道如何解决问题以允许代码与Office 2007一起使用。
谢谢
The code is under a button and everything is fine. The file is in the right place and all the code gets executed, but this code was written to use Office 2003 and it doesn''t seem to work completely with Office 2007.
Like I said above, when the code executes, the WINWORD.exe process runs in Task Manager, but the actual document does not appear in the foreground.
I am just wondering if anyone knows how to fix the problem to allow the code to work with Office 2007.
Thanks
尝试将第26行更改为:
appWord.Visible = True
try changing line 26 to:
appWord.Visible = True