如何使用Win32 API来确定打印机后记支持? [英] How to determine printer's postscript support using Win32 API?

查看:201
本文介绍了如何使用Win32 API来确定打印机后记支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发远程打印客户端(本地Win32应用程序)。它只是打印出来自服务器文件。我希望有以编程方式检查打印机发送数据之前支持PostScript的能力。

I'm developing remote printing client (native Win32 app). It simply prints files that come from server. I wish to have the ability to programmatically check if printer supports Postscript before sending data to it.

如何可以做到?

GETTECHNOLOGY逃生不会有什么帮助。说它返回PCL XL为还支持PostScript的HP打印机。

GETTECHNOLOGY escape doesn't help much. Say it returns "PCL XL" for HP printers that also support Postscript.

推荐答案

我不认为有什么办法可以从Win32 API的一个打印机是PostScript打印机,如果它接受多个页面描述语言肯定。

I don't think there's any way to be certain from the Win32 API that a printer is a PostScript printer,if it accepts multiple Page Description Languages.

原因之一是,有PostScript中没有办法切换语言,而这种的的可能在PCL打印机。因此,PCL / PostScript打印机出现PCL打印机,并允许您通过发送相应的code切换成PostScript。

One reason is that there is no way in PostScript to switch languages, while this is possible on PCL printers. So PCL/PostScript printers appear as PCL printers and allow you to switch to PostScript by sending appropriate code.

你试过发送POSTSCRIPT_IDENITFY?如果驱动程序不支持那么它可能不是一个PostScript驱动程序。我无法不幸检查。

Have you tried sending POSTSCRIPT_IDENITFY ? If the driver doesn't support that then it probably isn't a PostScript driver. I'm not able to check this unfortunately.

这篇关于如何使用Win32 API来确定打印机后记支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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