使用Access值填写Word文档 [英] Filling in Word document with Access values

查看:162
本文介绍了使用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


这篇关于使用Access值填写Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆