Jasper reports Jasperreport适配纸张尺寸B5
我有一个jasper报告模板,页面大小为A4,现在想在B5纸上打印。如何使内容不打印在纸上。您需要在Jasper reports Jasperreport适配纸张尺寸B5,jasper-reports,page-size,Jasper Reports,Page Size,我有一个jasper报告模板,页面大小为A4,现在想在B5纸上打印。如何使内容不打印在纸上。您需要在jasperReport标签上设置pageWidth=“501”和pageHeight=“709” 如您所见,B5的尺寸为176×250英寸 在jasper中,报告大小以像素(DPI 72)表示 计算将给出宽度499,jasper report使用默认值501,考虑到格式有1.5 mm的公差,任何一个值都可以 有20页边距的示例 <jasperReport xmlns="http://jas
jasperReport
标签上设置pageWidth=“501”
和pageHeight=“709”
如您所见,B5的尺寸为176×250英寸
在jasper中,报告大小以像素(DPI 72)表示
计算将给出宽度499,jasper report使用默认值501,考虑到格式有1.5 mm的公差,任何一个值都可以
有20页边距的示例
<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="testSize" pageWidth="501" pageHeight="709" columnWidth="461" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="e1be95c1-b1c3-499e-b902-99cda67676af">
如果您使用TIBCO Jaspersoft Studio,您可以执行以下操作:
<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="testSize" pageWidth="501" pageHeight="709" columnWidth="461" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="e1be95c1-b1c3-499e-b902-99cda67676af">