使用redmon和ghostscript配置打印机端口,错误窗口句柄无效

问题描述 投票:0回答:3

我想在 Windows 10 上使用 Redmon 和 Ghostscript 打印为 pdf,为此我添加了一台新打印机(将驱动程序设置为 Ghostpdf.inf)并添加了重定向端口(RPT1)。现在,当我配置此端口时,我收到错误窗口句柄无效,请检查图片。谢谢

printing ghostscript postscript redmon
3个回答
0
投票

好的,你需要管理员权限 - 使用 cmd 以管理员身份使用命令编辑端口配置 - printui.dll PrintUIEntry /p /n "打印机名称"


0
投票

如果您通过 Windows 的“打印管理”而不是通过打印机属性窗口创建新端口,会更好、更稳定


0
投票

好吧,迟到了,但我尝试使用 Win11。 对我来说,正如 @Jay 提到的,以管理员身份运行 cmd,然后

rundll32 printui.dll,PrintUIEntry /n /p "Ghostscript PDF PRINTER"

有帮助。使用 redmon 1.9 打印到“Ghostscript PDF PRINTER”时调用了我的程序。 非常好。

© www.soinside.com 2019 - 2024. All rights reserved.