Report design not valid : The detail section, the page and column headers and footers and the margins do not fit the page height
net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :
1. The detail section, the page and column headers and footers and the margins do not fit the page height.
at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:260)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:144)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:219)
at com.expayment.maipiao.service.impl.PrintBillServiceImpl.commonPrintPDF(PrintBillServiceImpl.java:612)
at com.expayment.maipiao.service.impl.PrintBillServiceImpl.printBill(PrintBillServiceImpl.java:540)
at com.expayment.maipiao.service.impl.PrintBillServiceImpl.printBill(PrintBillServiceImpl.java:191)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
------解决方案--------------------
这个错误是说你的页眉,页脚,边缘不适合当前页面的高度...