>>
This depends on how your printers are attached to your computer. I can think of two basic ways you can print to a printer attached to the server.One approach is to create a java.awt.Frame, and then use java.awt.Toolkit's getPrintJob method to print that Frame to the printer. This will return a java.awt.PrintJob object if it works.The second approach is more OS specific. You could create a temporary file and copy that file to the printer device. This would allow you more flexibility and ease in terms of what you could print, but would tie you into how your OS provided printer devices.
This depends on how your printers are attached to your computer. I can think of two basic ways you can print to a printer attached to the server.One approach is to create a java.awt.Frame, and then use java.awt.Toolkit's getPrintJob method to print that Frame to the printer. This will return a java.awt.PrintJob object if it works.The second approach is more OS specific. You could create a temporary file and copy that file to the printer device. This would allow you more flexibility and ease in terms of what you could print, but would tie you into how your OS provided printer devices.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货