Office.Interop.Word - 如何双面打印文档? [英] Office.Interop.Word - How to print the document on both sides?

查看:84
本文介绍了Office.Interop.Word - 如何双面打印文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Word.Document.PrintOut 方法打印文档(批量打印).如何双面打印文档?

I print documents (batch print) using Word.Document.PrintOut method. How can I print a document on both sides?

MS Word界面可以通过文件->打印->双面打印完成强>选项.

In the MS Word interface it can be done through the File->Print->Print on Both Sides option.

Word 2010、C#、.NET 3.5

Word 2010, C#, .NET 3.5

非常感谢约翰的回答(+1)!有我的研究结果:

Many thanks to John for his answer (+1)! There are results of my research:

  1. 我选择了 John 推荐的第一条路径,发现了一些额外的路径文章,例如 CodeProject 上的经典"文章(更换打印机设置使用 C#) 和 其他几个源自它.最后,我得到了用于设置 Duplex 属性的编译代码,但像许多本文的其他受害者" - 此代码不起作用:)
  2. DocumentProperties API 失败后,我尝试将打印命令并得到以下结果:

  1. I went to the first path that John recommends, found a few additional articles, like "classic" article on CodeProject (Changing printer settings using C#) and several others derived from it. In the end, I got compiled code which was to set a Duplex property, but like many others "victims" of this article - this code did not work :)
  2. After the failure of the DocumentProperties API I tried to put the print commands and got the following results:

  • 我的办公室打印机 (Kyocera FS-C5100) 成功打印了一份文档两边,BUT 都疯了,开始把每一段都印在一张纸上单独的工作表...
  • 客户端打印机 (Xerox 3600) 显然与 HP 不完全兼容",并且根本无法双面打印!
  • My office printer (Kyocera FS-C5100) successfully printed a document on both sides, BUT came crazy and began to print each paragraph on a separate sheet...
  • Clients printer (Xerox 3600) apparently was "not fully HP-compatible" and did not print on both sides at all!

所以我的调查仍在继续,如果有人有其他想法 - 欢迎!

So my investigation continues and if anyone have other ideas - welcome!

推荐答案

该问题无法直接解决,但可以实施变通方法.

The problem can not been solved directly, but it is possible to implement a workaround.

应该在客户端系统上多次安装一台物理"打印机,以便在打印机列表中它应该以不同的名称列出两次.

One "physical" printer should be installed on the client system several times, so that in the printers list it should be listed twice under different names.

此外,这些打印机"之一必须配置为双面打印,其次是正常 - 单面打印.根据应用程序的需要,它会选择两台打印机"中的一台来打印文档.

Further, one of these "printers" must be configured to double side printing, and second to normal - one side printing. Depending on the application needs it selects one of two "printers" for printing documents.

这篇关于Office.Interop.Word - 如何双面打印文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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