问题标签 [java-print]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
113 浏览

java - 如何使用 java 访问在 windows-print-server 上配置的打印机?

我有一台 windows-print-server(ip 192.168.2.1) 配置了我网络中的所有打印机。
我有一个 java(spring boot) 应用程序,它在同一网络中的另一个 windows 盒子(ip 192.168.2.2) 上运行。
需要在应用程序中添加打印功能,但首先我有一些基本查询

  • 如何从 java 应用程序访问/连接 windows-print-server 以获取所有打印机的列表。
  • 如何将打印作业发送到特定打印机?

如果您能帮助我提供一些指针/库或示例代码,将不胜感激。谢谢!