>>
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.

解决方案 »

  1.   

    it seems that it's easy to print in applet. u can try to set that applet without any display. but i got no idea about blind print.:)
      

  2.   

    Thanks a lot,I will make a try!!It seems that the first way skyyoung told me is suitable for me,there is still some questions around me,but i will get it by practice.
      

  3.   

    use C/C++ write a navtive method to implement printing ,then use it througth JNI .
      

  4.   

    use C/C++ write a navtive method to implement printing ,then use it througth JNI .