JasperReports images adds white space

0

I have a simple report on Ireport. Everything works great, the only thing is that when a detail band has an image, it automaticallys skips the other details to the next page. Leaving the current page with a lot of whitespace. Here is the pdf so you can view the problem.

http://www.docdroid.net/mw0l/example.pdf.html And here is the part of the xml where the images are. It is really weird, when the detail doesn't have images it displays correctly

<image scaleImage="FillFrame" vAlign="Top" onErrorType="Blank">
                <reportElement positionType="Float" mode="Opaque" x="16" y="140" width="173" height="99" isRemoveLineWhenBlank="true"/>
                <imageExpression><![CDATA["/webapp/images/"+$F{services_service_id} + "comp" + $F{quotation_lines_quotation_line_company_id} + "/" + $F{services_service_service_photo_left_name}]]></imageExpression>
            </image>
            <image scaleImage="FillFrame" vAlign="Top" onErrorType="Blank">
                <reportElement positionType="Float" mode="Opaque" x="203" y="140" width="173" height="99" isRemoveLineWhenBlank="true"/>
                <imageExpression><![CDATA["/webapp/images/"+$F{services_service_id} + "comp" + $F{quotation_lines_quotation_line_company_id} + "/" + $F{services_service_service_photo_center_name}]]></imageExpression>
            </image>
            <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                <reportElement positionType="Float" x="25" y="77" width="497" height="26" isRemoveLineWhenBlank="true"/>
                <textElement textAlignment="Justified">
                    <font fontName="Arial"/>
                </textElement>
                <textFieldExpression><![CDATA[$F{supplier_information_supplier_information_long_description}]]></textFieldExpression>
            </textField>
            <image scaleImage="FillFrame" vAlign="Top" onErrorType="Blank">
                <reportElement positionType="Float" mode="Opaque" x="385" y="140" width="173" height="99" isRemoveLineWhenBlank="true"/>
                <imageExpression><![CDATA["/webapp/images/"+$F{services_service_id} + "comp" + $F{quotation_lines_quotation_line_company_id} + "/" + $F{services_service_service_photo_right_name}]]></imageExpression>
            </image>
            <line>
                <reportElement positionType="Float" x="3" y="261" width="555" height="1" forecolor="#C0C0C0"/>
            </line>

 

 

Thanks in advance.

drojasug's picture
Joined: Oct 3 2014 - 2:46pm
Last seen: 4 years 8 months ago

0 Answers:

No answers yet
Feedback