1.如下图,我有一个subRerport,想要去掉detail区域上面和下面的空白地方
2.只需要在jxml文件设置上外边距和下外边距为0即可
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BM_Appendix3_Gather_Detail" pageWidth="780" pageHeight="842" columnWidth="740" leftMargin="20" rightMargin="20" topMargin="0" bottomMargin="0" uuid="38ca3c35-b676-4b03-9f1e-d417fdacb9ab">
3.即可达到目的