ireport 打印报表一直成纵向输出,无法横向打印,设置报表和打印机都是纵向打印。
<?xmlversion="1.0"encoding="UTF-8"?><jasperReportxmlns=&...
<?xml version="1.0" encoding="UTF-8"?> <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="BarCodePrintTest" language="groovy" printOrder="Horizontal" pageWidth="170" pageHeight="85" orientation="Landscape" columnWidth="85" leftMargin="2" rightMargin="2" topMargin="2" bottomMargin="2"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <parameter name="GetId" class="java.lang.Long"/> <queryString> <![CDATA[SELECT fnames,fbarcode,fmakeup,FSquareWeight,FLocation||FlocationNo2 Flocal FROM productinfo WHERE id=$P{GetId}]]> </queryString> <field name="FNAMES" class="java.lang.String"/> <field name="FBARCODE" class="java.lang.String"/> <field name="FMAKEUP" class="java.lang.String"/> <field name="FSQUAREWEIGHT" class="java.math.BigDecimal"/> <field name="FLOCAL" class="java.lang.String"/> <background> <band splitType="Stretch"/> </background> <title> <band splitType="Stretch"/> </title> <pageHeader> <band splitType="Stretch"/> </pageHeader> <columnHeader> <band splitType="Stretch"/> </columnHeader> <detail> <band height="80" splitType="Stretch"> <textField> <reportElement x="25" y="24" width="100" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{FBARCODE}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band splitType="Stretch"/> </columnFooter> <pageFooter> <band splitType="Stretch"/> </pageFooter> <summary> <band height="1" splitType="Stretch"/> </summary> </jasperReport>
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询