我有一个碧玉报告模板,页面大小为A4,现在想要在B5纸上打印。我该怎么做才能使内容不被打印出来。
答案 0 :(得分:2)
答案 1 :(得分:1)
您需要在pageWidth="501"
代码
pageHeight="709"
和jasperReport
ISO 216,你可以看到B5是176×250毫米
在碧玉报告中,大小以像素(DPI 72)
表示pixels = (mm * dpi) / 25.4; //The DPI in jasper report is 72
计算将给出宽度499,jasper报告使用默认值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">