自动打印Word文档(无用户干预) [英] Automatically printing a Word document (w/o user interviention)

查看:113
本文介绍了自动打印Word文档(无用户干预)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好专家!我在编写表单上的按钮时遇到问题并且可以使用一些帮助。


简而言之,我正在尝试编写按钮来执行以下操作:


1.选择合适的Word文档

2.使用记录中的字段填写文档中的表单字段

3.打印文件。

4.关闭word文档,禁止任何保存对话框。


我想在没有用户干预的情况下完成所有这些操作(点击后)按钮,当然)。我遇到的问题是步骤3和4.如何编写它以打印Word文档(使用默认打印机)并关闭它同时抑制任何保存对话框?


这里是代码相关部分的代码片段:

Hello experts! I''m having trouble coding a button on a form and could use some help.

In a nutshell, I''m attempting to code the button to do the following:

1. Choose the appropriate Word document
2. Fill in form fields on the doc using fields from the record
3. Print the document.
4. Close the word document suppressing any save dialogs.

I''d like to do all of this without user intervention (after clicking the button, of course). The problem I''m having is steps 3 and 4. How do I code it to print the Word document (using the default printer) and close it while suppressing any save dialogs?

Here''s the snippet from the relevent section of the code:

展开 | 选择 | 换行 | 行号

推荐答案


你好专家!我在编写表单上的按钮时遇到问题并且可以使用一些帮助。


简而言之,我正在尝试编写按钮来执行以下操作:


1.选择合适的Word文档

2.使用记录中的字段填写文档中的表单字段

3.打印文件。

4.关闭word文档,禁止任何保存对话框。


我想在没有用户干预的情况下完成所有这些操作(点击后)按钮,当然)。我遇到的问题是步骤3和4.如何编写它以打印Word文档(使用默认打印机)并关闭它同时抑制任何保存对话框?


这里是代码相关部分的代码片段:

Hello experts! I''m having trouble coding a button on a form and could use some help.

In a nutshell, I''m attempting to code the button to do the following:

1. Choose the appropriate Word document
2. Fill in form fields on the doc using fields from the record
3. Print the document.
4. Close the word document suppressing any save dialogs.

I''d like to do all of this without user intervention (after clicking the button, of course). The problem I''m having is steps 3 and 4. How do I code it to print the Word document (using the default printer) and close it while suppressing any save dialogs?

Here''s the snippet from the relevent section of the code:

展开 | 选择 | 换行 | 行号


感谢ADezii的回复。


我做了一些实验,看来如果我这样运行:
Thanks ADezii for the reply.

I did some experimenting and it appears that if I run it like this:
展开 | 选择 | 换行 | 行号



感谢ADezii的回复。


我做了一些实验,看来如果我这样运行:
Thanks ADezii for the reply.

I did some experimenting and it appears that if I run it like this:
展开 | 选择 | 换行 | 行号


这篇关于自动打印Word文档(无用户干预)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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