windows - 打印时获取文件名

标签 windows printing

当用户从任何应用程序打印时,有没有办法在打印机事件的某个地方检测文件的文件名?我正在寻找一个 Windows API,我可以在其中确定正在打印的文件。

最佳答案

打印 jibs 使用名称打开,但通常这并不意味着文件名 - 我相信可以通过直接查询打印机驱动程序来访问显示在打印队列中的名称。

关于windows - 打印时获取文件名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4862053/

相关文章:

Windows 10 Docker 主机 - 从 Linux 容器显示 GUI 应用程序

python - 将 iOS 应用程序连接到 Windows/Linux 应用程序

python - print 不适用于 jupyter 笔记本中的多处理模块

javascript - 使用 javascript 或 jquery 打印 pdf

html - 打印 : How to hide element and include element to print

c# - 打印异常 : The device is not ready

django - 找不到 msguniq。 Django 1.8,Windows 7 64 位

c++ - 要在 Windows 上读取/设置用户屏幕保护程序,我是否需要使用系统注册表或 SystemParametersInfo API?

css - Safari 内部分页 :avoid not working

windows - 如何模拟远程桌面 session 的键盘输入?