ireport 打印时,打印提示框是否需要

来源:互联网 发布:阿里云 自己安装系统 编辑:程序博客网 时间:2024/06/05 15:37


主要代码

String printFileName = null;      
  try {
    printFileName = JasperFillManager.fillReportToFile(sourceFileName,parameters,dataSource);           
             if(printFileName != null){
                 JasperPrintManager.printReport(printFileName ,true); //true显示打印提示框,false不显示打印提示框              
             }

}catch (JRException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }

改 :JasperPrintManager.printReport(printFileName ,false);

 提示框不在出现


1 0
原创粉丝点击