How to print Jasper Reports in a specified printer?

前端 未结 4 1524
慢半拍i
慢半拍i 2021-01-02 05:22

All I want, is to print a JasperReport without user selecting a printer. I searched for it but there is no good solution that works. This is the relevat part of my code:

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-02 05:57

    Just Use this .no need to more code it handle jasper

    JasperPrintManager.printReport(jasperPrint, false);
    

    u use true it will show window

    I tested it epson TM T82 It worked.

提交回复
热议问题