简体   繁体   English

如何从android设备打印到windows网络共享打印机?

[英]How print from android device to windows network shared printer?

I have a Printer which is connected to a windows 7 machine via a USB cable and operates on Usb001 port.Printer is shared across the network, any user on the network can print from their system successfully.The printer does not have an Ethernet port.我有一台打印机,它通过 USB 电缆连接到 Windows 7 机器并在 Usb001 端口上运行。打印机在网络上共享,网络上的任何用户都可以从他们的系统成功打印。打印机没有以太网端口。

My requirement is to print a doc from android device to the locally shared network printer.is it possible?我的要求是将文档从 android 设备打印到本地共享网络打印机。这可能吗? if yes please give some examples or guidance.如果是,请提供一些示例或指导。

NOTE : I do not want to go with Google cloud printing, and i have tried using sockets but i think it is not possible without a Ethernet port.注意:我不想使用 Google 云打印,并且我尝试过使用套接字,但我认为没有以太网端口是不可能的。

I also looked into the Print Manager API introduced in Android API 19 and above,but i did not understand the proper functionality of that api,which type of printer can be used with these api?我还研究了 Android API 19 及更高版本中引入的打印管理器 API,但我不明白该 api 的正确功能,哪些类型的打印机可以与这些 api 一起使用?

Please give some info and guide me solve my issue, thank u for consideration.请提供一些信息并指导我解决我的问题,谢谢您的考虑。

The PrintManager api does not provide a way to discover or connect to printers by itself, it instead communicates with the PrintService s installed on the device. PrintManager api 本身不提供发现或连接打印机的方法,而是与安装在设备上的PrintService通信。 Your app's user will need to install a Print service plugin if there isn't one on the device by default.如果默认情况下设备上没有打印服务插件,您的应用程序的用户将需要安装打印服务插件 The type of connection to the printer depends on the print service used.与打印机的连接类型取决于所使用的打印服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM