批量打印word文档

This should work for Word 2007+.  Older articles mention a way to start Word, but they imply the functionality to print a document to the default printer is automatically built in; it is not.

这应该适用于Word 2007+。 较早的文章提到了一种启动Word的方法,但是它们暗示了自动将文档打印到默认打印机的功能。 它不是。

The location of options will change depending on which version of Word you are using, but here's the general idea:

选项的位置将根据您所使用的Word版本而变化,但这是基本思路:

=====

=====

  • In Trust Center Settings/Trusted Locations check the box to Allow Trusted Locations on my network (even though it's "not recommended")在“信任中心设置/受信任的位置”中,选中“允许在我的网络上使用受信任的位置”复选框(即使“不推荐”)
  • In Trust Center Settings/ActiveX Settings check the button to Enable all controls without restrictions and without prompting (again, even though it's "not recommended")在“信任中心设置/ ActiveX设置”中,选中“启用所有控件而不受限制且无提示”的按钮(同样,即使“不推荐”)
  • In Trust Center Settings/ActiveX Settings check the box for Safe mode在“信任中心设置/ ActiveX设置”中,选中“安全模式”复选框
  • In Trust Center Settings/Macro Settings check the button to Enable all macros (again, "not recommended")在“信任中心设置/宏设置”中,选中“启用所有宏”按钮(同样,“不推荐”)
  • In Trust Center Settings/ActiveX Settings check the box to Trust access to the VBA project object model在“信任中心设置/ ActiveX设置”中,选中“信任对VBA项目对象模型的访问”复选框

=====

=====

Open your test document (.docx) and re-save it as a macro-enabled document (.docm).  Use Alt+F11 to open the Visual Basic for Applications environment and insert a new module (NOT a class module).  In the module paste this text:

打开测试文档(.docx),然后将其重新保存为启用宏的文档(.docm)。 使用Alt + F11打开Visual Basic for Applications环境并插入一个新模块(不是类模块)。 在模块中粘贴以下文本:

Option Explicit
Sub FilePrintDefault()
ActiveDocument.PrintOut
Application.Quit
End Sub ' FilePrintDefault

Save the module and save the document.

保存模块并保存文档。

To test, use Alt+F8 to run the macro FilePrintDefault.  Word will print the document and then quit.

要进行测试,请使用Alt + F8运行宏FilePrintDefault。 Word将打印文档,然后退出。

=====

=====

As found on other Internet sources, you can now paste this line in a text command file (e.g. "HP testprint.cmd") and edit it for your version of Word, and whatever your test document name is.

正如在其他Internet来源上所发现的那样,您现在可以将该行粘贴到文本命令文件(例如“ HP testprint.cmd”)中,并针对您的Word版本以及测试文档的名称进行编辑。

"%ProgramFiles(x86)%\Microsoft Office\Office14\WINWORD.EXE" /mFilePrintDefault "\\whserver02\Public\Printers\RGB HP Deskjet 3000 datetime.docm"

This will open your document in Word and run the macro, which includes the instruction to quit.  (Otherwise your print spooler may get messed up, which frustrated me for a long time.)

这将在Word中打开您的文档并运行宏,其中包括退出说明。 (否则,您的打印后台处理程序可能会混乱,这使我很长时间都感到沮丧。)

To test, run the command file from a command prompt (Win+R, "cmd").  Word will print the document and then quit.

要进行测试,请从命令提示符下运行命令文件(Win + R,“ cmd”)。 Word将打印文档,然后退出。

=====

=====

Finally, create a scheduled task.  To make changes you will need the Properties window available.

最后,创建一个计划任务。 要进行更改,您将需要“属性”窗口。

On the Actions tab choose the action to start a program.  The name of the command file will be the Program/Script to run.  No arguments are needed; any of that is contained in the command file.

在“操作”选项卡上,选择要启动程序的操作。 命令文件的名称将是要运行的程序/脚本。 不需要参数; 任何这些都包含在命令文件中。

On the General tab

在常规选项卡上

  • change the user to an Administrator account将用户更改为管理员帐户
  • check "Run whether the user is logged on or not"检查“运行用户是否已登录”
  • leave "Do not store password" unchecked取消选中“不存储密码”
  • check "Run with highest privileges"选中“以最高特权运行”
  • configure for your version of Windows为您的Windows版本配置
  • click OK, and provide the administrator account password单击确定,并提供管理员帐户密码

To test, run the task immediately.

要测试,请立即运行任务。

To test further, change the Triggers time to one minute past current for today and wait for the test document to print and close Word.  If successful, change the Trigger back to the desired schedule.

要进行进一步测试,请将“触发时间”更改为今天的当前时间一分钟,然后等待测试文档打印并关闭Word。 如果成功,则将触发器更改回所需的时间表。

翻译自: https://www.experts-exchange.com/articles/29417/How-to-schedule-printing-a-Word-2007-document.html

批量打印word文档

批量打印word文档_如何安排打印Word 2007+文档相关推荐

  1. 苹果手机怎么编辑word文档_可以一键导入word图文的微信编辑软件有什么?编辑器怎么使用?...

    工作效率的提高除了因为熟练之外,还因为各种工具的辅助.自古以来都有工欲善其事必先利其器的教诲,好的工具能让我们工作时事半功倍.今天我们来聊聊什么工具可以提高公众号运营效率?什么微信编辑器可以讲word ...

  2. python生成word 带目录_利用python程序生成word和PDF文档的方法

    一.程序导出word文档的方法 将web/html内容导出为world文档,再java中有很多解决方案,比如使用Jacob.Apache POI.Java2Word.iText等各种方式,以及使用fr ...

  3. 微软office在线文档_如何使用Microsoft Office密码保护文档和PDF

    微软office在线文档 Microsoft Office lets you encrypt your Office documents and PDF files, allowing no one ...

  4. html转word保留样式_译员必备 | 初识Word格式标记

    标 记 含 义 在计算机术语中,标记 (markup) 是使用称为标记(tag)的代码来定义任何数据的结构.外观以及含义的过程. 运营过公众号的小伙伴一定熟悉微信编辑器.我们在使用模板排版好文字时,点 ...

  5. word标尺灰色_如何在Microsoft Word中使用标尺

    word标尺灰色 Word's rulers let you control the margins of your page and the indentation of paragraphs. T ...

  6. word标尺灰色_如何在Microsoft Word中显示和隐藏标尺

    word标尺灰色 Rulers in Word help you position text, graphics, tables, and other elements in your documen ...

  7. python提取word所有表格_用Python提取 Word 表格内容

    一个公司有若干个部门,一个部门有若干个员工,每一个员工填写一份自己的信息(Word 版),然后录入系统,Word 表格模板如下: 填入内容如: 首先我们需要做的就是把数据提取出来,之后我们就可以对数据 ...

  8. 微软word开机自启动_如何在Microsoft Word中创建自定义封面

    微软word开机自启动 A great cover page draws in readers. If you use Microsoft Word, you're in luck, because ...

  9. java 最长回文串_通俗易懂的最长回文串图解、说明及Java代码(中心扩散法和Manacher算法)...

    1. 回文串 作为程序员,回文串这个词已经见怪不怪了,就是一个字符串正着读和反着读是一样的,形式如abcdcba.bbaabb.这里涉及到奇回文和偶回文,奇回文指回文串的字符数是奇数,偶回文指回文串的 ...

  10. word文档里怎么嵌入文档_如何在Microsoft Word文档中嵌入字体

    word文档里怎么嵌入文档 When you email someone a copy of your Word document or PowerPoint presentation and the ...

最新文章

  1. linux 杀毒软件 clamav安装使用
  2. 可以获取python整数类型帮助的是什么-下列选项中可以获取Python整数类型帮助的是()。...
  3. ArcGIS Server--揭开你的神秘面纱
  4. Jenkins环境搭建总结
  5. 【mybatis mapper XML】自增主键
  6. Centos 7 文件管理基础命令
  7. [洛谷2357] 守墓人
  8. 一年新的一年_热门系统管理员阅读新的一年
  9. CF988 D. Points and Powers of Two【hash/数学推理】
  10. 11.solr学习速成之MoreLikeThis
  11. 开始Azure之旅,参加深度培训 (转)
  12. java 对话框打开与保存
  13. autojs java文件_autojs官方文档
  14. 永恒之蓝漏洞复现(包括常见问题处理)和修复方案
  15. S3C2410 通用异步收发UART 串口通信
  16. Android查电池循环软件,这款软件,让安卓也能查看电池寿命
  17. 【iOS】应用跳转到系统应用
  18. CSS 中的 HSL 和 HSLA 与 RGB 和 RGBA
  19. 【程序员股民系列】如何用python, pandas, numpy, matplotlib绘制每日个股成交额图
  20. 【数学有什么用处?看完后恍然大悟!】

热门文章

  1. 虚短虚断是怎么来的?长篇好文介绍深度负反馈
  2. swfobject介绍
  3. 如何解决卸载驱动之后又重新装的问题
  4. 收文和发文管理流程分析
  5. Python源码阅读(一)
  6. 【Linux环境下C语言编程】
  7. Xmind8 绿色版安装教程
  8. jmeter压测学习15-setUp线程组实现用户先登录
  9. 超全 泛微 E8 E-cology 8 开发资料大全 开源下载资料
  10. 《从零开始的 RPG 游戏制作教程》第八期:对话、按钮、变量、马甲