Word 显示未安装的托盘并带有感叹号

发布于 2024-07-24 20:59:25 字数 289 浏览 5 评论 0原文

在我的项目中,我试图到达已安装打印机的托盘并成功完成。 如果所选打印机的某些纸张来源未安装,我不会在纸张来源组合中显示它们。 同时,Word 也不在打印对话框 - 纸张/质量选项卡中显示它们。 但是,当 Word 显示带有感叹号的未安装托盘时,我的组合也会显示它们(当然没有任何标记)。 为什么 Word 会显示它们?那个感叹号的含义是什么? 我怎样才能避免这些托盘?

  • 我正在使用 System.Drawing.Printing.PaperSource 来获取托盘。

提前致谢。

In my project, I'm trying to reach trays of the installed printers and successfully doing it. If some paper sources of the selected printer are not installed I don't show them in the paper source combo. In the mean time, Word also don't show them in the print dialog - paper/quality tab. But when Word shows non-installed trays with an exclamation mark, my combo also shows them (without any mark of course). Why does Word show them and what is the meaning of that exclamation mark? And how can I avoid those trays?

  • I'm using System.Drawing.Printing.PaperSource to get trays.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

a√萤火虫的光℡ 2024-07-31 20:59:26

您使用的是哪个版本的Word?您能告诉我驱动程序的版本吗?

通常,使用 Microsoft Unidrv 框架的打印驱动程序有一个选项,可以为有限制的设置显示黄色感叹号。 这适用于未安装的托盘。 您可以通过转至驱动程序属性(打印机和传真文件夹 --> 驱动程序属性 --> 设备设置)来解决纸盘限制,并将纸盘设置为已安装。

您无法真正避免这些托盘,因为驱动程序在请求托盘时通常会将所有托盘报告回应用程序。 查明已安装哪些托盘和未安装哪些托盘的一种方法是检查注册表。

键: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers((队列名称))\PrinterDriverData
目录中的键名:FeatureKeyword

希望这有帮助。 如果是这样,(+1):)

What version of Word are you using and can you also tell the version of the driver?

Normally print drivers which use the Microsoft Unidrv framework has an option to show a yellow exclamation mark for settings that have constraints. This is applicable for trays that are not installed. You can resolve the Tray constraints by going to your driver properties (Printers and Faxes folder --> Driver Properties --> Device Settings) and set the tray to installed.

You cant really avoid those trays since the driver mostly reports all the trays back to the application when it requests for trays. One way you can find out what trays are installed and what are not is by checking the registry.

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers((queue- name))\PrinterDriverData
Key name in dir: FeatureKeyword

Hope this helps. If so, (+1) :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文