javax.print API 你可以用这个包!!

解决方案 »

  1.   

    能详细的解释一下吗。我对打印的不太熟。用PrinterJob可以吗???多谢了。。
      

  2.   

    JobAttributes job_att = new JobAttributes();
     job_att.setDialog(JobAttributes.DialogType.COMMON);
     job_att.setPrinter("你想设置的打印机名称");
     PageAttributes page_att = new PageAttributes();
     PrintJob printjob = this.getToolkit().getPrintJob(frame, "ok", job_att,page_att);