zatsepin Posted May 23, 2019 Share Posted May 23, 2019 I have a frame with static text, picture and text fields inside it. When it's positionType is Float everything inside displays ok. But if I switch position to RelativeToBottom to display the whole frame on the second page of the report, the text fields are disappeared! In same time, the static text and the picture continue to display well. What can it be? I'll be appreciate for any help.The code of the frame is here with * to hide real names of variables:<frame> <reportElement positionType="FixRelativeToBottom" x="334" y="577" width="169" height="101" uuid="814a6a16-5dba-4cfe-b851-d70abc5ed714"> <printWhenExpression><![CDATA[$F{***} != null]]></printWhenExpression> </reportElement> <box> <pen lineWidth="2.0" lineColor="#0A2896"/> </box> <staticText> <reportElement x="52" y="16" width="112" height="12" forecolor="#0A2896" uuid="c7a73e9e-eeda-4cac-9db0-d8eafe06e345"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <textElement textAlignment="Right" verticalAlignment="Bottom"> <font fontName="Roboto" size="9"/> </textElement> <text><![CDATA[***]]></text> </staticText> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement positionType="Float" x="9" y="36" width="158" height="12" forecolor="#0A2896" uuid="1edf684f-f0a7-45b6-b5ab-e235d713dd86"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="cm"/> </reportElement> <textElement> <font fontName="Roboto" size="9"/> <paragraph leftIndent="3" rightIndent="3"/> </textElement> <textFieldExpression><![CDATA[$F{***}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement positionType="Float" x="9" y="60" width="158" height="12" forecolor="#0A2896" uuid="ff982306-a63e-4157-affb-0279d7361462"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <textElement> <font fontName="Roboto" size="9"/> <paragraph leftIndent="3" rightIndent="3"/> </textElement> <textFieldExpression><![CDATA[$F{***}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement positionType="Float" x="9" y="48" width="158" height="12" forecolor="#0A2896" uuid="7e946d19-ba0c-45a9-8bab-34d9ae4be0dc"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="cm"/> </reportElement> <textElement> <font fontName="Roboto" size="9"/> <paragraph leftIndent="3" rightIndent="3"/> </textElement> <textFieldExpression><![CDATA[$F{***}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement positionType="Float" x="9" y="72" width="158" height="12" forecolor="#0A2896" uuid="8a26e997-53f4-4138-87c8-3809d9e34689"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <textElement> <font fontName="Roboto" size="9"/> <paragraph leftIndent="3" rightIndent="3"/> </textElement> <textFieldExpression><![CDATA[$F{***}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement positionType="Float" x="9" y="84" width="158" height="12" isPrintInFirstWholeBand="true" forecolor="#0A2896" uuid="5865f24c-29f1-43c1-9bab-da5d91c16de5"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <textElement textAlignment="Left"> <font fontName="Roboto" size="9"/> <paragraph leftIndent="3" rightIndent="3"/> </textElement> <textFieldExpression><![CDATA["***: " + $V{***}]]></textFieldExpression> </textField> <image scaleImage="FillFrame" hAlign="Center" vAlign="Middle"> <reportElement x="8" y="11" width="42" height="17" uuid="411c1571-c626-4780-97ba-0a003c64d4b1"> <property name="com.jaspersoft.studio.unit.y" value="cm"/> <property name="com.jaspersoft.studio.unit.height" value="cm"/> <property name="com.jaspersoft.studio.unit.width" value="cm"/> <property name="com.jaspersoft.studio.unit.x" value="cm"/> </reportElement> <imageExpression><![CDATA["/opt/template/picture/***.png"]]></imageExpression> </image> </frame> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now