Jump to content

dmit.medv

Members
  • Posts

    1
  • Joined

  • Last visited

dmit.medv's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I'm trying to create table-like structure from text fields (one by one). When table fits one page then all is well. But the height of the second row is not fixed. As a result, the transfer of the table on the second page is not correct. http://i.stack.imgur.com/mtPY5.jpg What's the best way to build my table-like structure with the page-breaking protection? p.s.: maybe somehow table component can help me? (but I have only 3 rows) <?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="jr_pcurrency_payment" pageWidth="595" pageHeight="842" columnWidth="519" leftMargin="56" rightMargin="20" topMargin="20" bottomMargin="20" uuid="6d7db4ff-6d02-4c2a-a011-d45f46c8e726"> <property name="ireport.zoom" value="1.5"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <title> <band splitType="Stretch"/> </title> <detail> <band height="225" splitType="Stretch"> <frame> <reportElement uuid="3e38ecb7-7d4f-4f3f-8e4f-17f5710da150" x="17" y="74" width="328" height="46"/> <textField isStretchWithOverflow="true"> <reportElement uuid="036e518c-cf04-4fc1-9efa-64550ee008a5" stretchType="RelativeToTallestObject" x="0" y="0" width="125" height="46"/> <box topPadding="10" leftPadding="10" bottomPadding="10" rightPadding="10"> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement/> <textFieldExpression><![CDATA["Big message: "]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="ad277959-47f2-487d-ac9e-b5633107d10e" x="125" y="0" width="203" height="46"/> <box topPadding="10" leftPadding="10" bottomPadding="10" rightPadding="10"> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement/> <textFieldExpression><![CDATA["NOT FIXED HEIGHT ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntext1ntext2ntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxntextxxxnEND"]]></textFieldExpression> </textField> </frame> <frame> <reportElement uuid="7f7de480-97da-4283-9a1d-3c7bdb0adb37" x="17" y="29" width="328" height="45"/> <textField> <reportElement uuid="27a44339-76b4-4e76-a034-49d48f28eb56" x="0" y="0" width="125" height="45"/> <box topPadding="10" leftPadding="10" bottomPadding="10" rightPadding="10"> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement/> <textFieldExpression><![CDATA["row 1, column 1"]]></textFieldExpression> </textField> <textField> <reportElement uuid="64d22235-5a6c-4adf-a9d1-7e447a597799" x="125" y="0" width="203" height="45"/> <box topPadding="10" leftPadding="10" bottomPadding="10" rightPadding="10"> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement/> <textFieldExpression><![CDATA["row 1, column 2 (fixed height)"]]></textFieldExpression> </textField> </frame> <frame> <reportElement uuid="5ef2f050-290e-4c7c-8110-69226618f742" positionType="Float" x="17" y="120" width="328" height="51"/> <textField> <reportElement uuid="7b2146f9-6065-4d4c-8ae6-bd7b18e1d3ff" x="0" y="0" width="125" height="51"/> <box topPadding="10" leftPadding="10" bottomPadding="10" rightPadding="10"> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement/> <textFieldExpression><![CDATA["row 3, column 1"]]></textFieldExpression> </textField> <textField> <reportElement uuid="073f8100-8316-424d-a39e-e9139d1920d4" x="125" y="0" width="203" height="51"/> <box topPadding="10" leftPadding="10" bottomPadding="10" rightPadding="10"> <pen lineWidth="1.0"/> <topPen lineWidth="1.0"/> <leftPen lineWidth="1.0"/> <bottomPen lineWidth="1.0"/> <rightPen lineWidth="1.0"/> </box> <textElement/> <textFieldExpression><![CDATA["row3, column 2 (fixed height)"]]></textFieldExpression> </textField> </frame> </band> </detail></jasperReport>[/code]
×
×
  • Create New...