Jasper Report Direct Print to Printer Device



For View the Report

  JasperViewer.viewReport(jasperPrint, true);//for view Report
                            *true:means it Close java main window also with Jasper


JasperViewer.viewReport(jasperPrint, fasle);//for view Report
                         *false:means it will Close only Jasper window,not Java Main window



Direct report To Printer Device

   JasperPrintManager.printPage(jasperPrint, 0, true);//for Direct print  
                         * True : It Shows "Printrer Dialog also"
      
  JasperPrintManager.printPage(jasperPrint, 0, false);//for Direct print  
                         * fasle : It can't Show "Printrer Dialog", it will print the report directly

Post a Comment

Thank You

Previous Post Next Post