请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
Agan(uid:74950)
职业资格认证:尚未取得认证
  • 1.帮助文档调默认打印机 // 定义报表运行环境,才能执行报表 String envPath = onLinePoint; FRContext.setCurrentEnv(new LocalEnv(envPath)); try { TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook(FRContext.getCurrentEnv(), fileName+".cpt"); // 参数传值 Parameter parameters = workbook.getParameters(); HashMap paraMap = new HashMap(); paraMap.put(parameters.getName(), packCode); // java中调用报表打印方法 boolean a = PrintUtils.printWorkBook(fileName+".cpt", paraMap, false); if (a == false) { System.out.println("失败啦!返回" + a); this.returnData.toSuccess("打印封箱单失败!"); } else { this.returnData.toSuccess("打印封箱单成功!"); System.out.println("成功!返回" + a); } } catch (Exception e) { e.printStackTrace(); } 2.需求调用指定打印机 public static void print(PrintableSet printableset, boolean flag, String s) throws PrinterException { print(printableset, flag, s, 0); } public static void print(PrintableSet printableset, boolean flag, String s, int i) throws PrinterException { PrintService printservice = null; if(s != null) { PrintService aprintservice = PrintServiceLookup.lookupPrintServices(javax.print.DocFlavor.INPUT_STREAM.AUTOSENSE, null); int j = 0; do { if(j >= aprintservice.length) break; if(s.equals(aprintservice.getName())) { printservice = aprintservice; break; } j++; } while(true); } if(printservice == null) printservice = PrintServiceLookup.lookupDefaultPrintService(); PrinterJob printerjob = PrinterJob.getPrinterJob(); if(printservice != null) printerjob.setPrintService(printservice); if(printableset.size() == 0) { return; } else { getPageablePrintBook(printerjob, printableset, printservice, flag, i); printerjob.print(); return; } } 3.问:上面方法是否能满足需求; 参数中PrintableSet如何使用、String s 是否打印机名称; 具体实现步骤。
  • 如题意,不知道报表是否可以实现这种动态显示有值项,就像js动态画上去的效果,格式正常无错乱,麻烦了解的指导指导,谢谢!

2

1

2

10

没有更多
个人成就
内容被浏览0
加入社区7年187天
返回顶部