allenconquest Posted July 22, 2008 Posted July 22, 2008 I am upgrading from 0.6.1 to 1.3.4 to use the virtualizer. We have 300+ templates and I'm finding some issues with the switch. The report I am using for testing has a pageFooter. In this footer is a one line warning message, and to the right of this is a page number in the format "Page x of y'. When I use 1.3.4 the warning message is not displaying at all. When I use the Swap File virtualizer the page number is truncated to 'Page x of', but using the File or GZip virtualizer displays this correctly.Since I have so many templates I don't want to have to modify each one. Has something changed with the way pages are rendered between these versions, and is there a way of correcting this issue?Thanks, Allen
lucianc Posted July 22, 2008 Posted July 22, 2008 The disappearing warning text might be caused by changes to the text measuring/rendering code. Try to increase the height of the text element and see whether has any effect. If you can post a sample text element that displays in 0.6.1 but not in 1.3.4, we would debug it and determine the cause of the change in behaviour.Regarding the JRSwapFileVirtualizer issue, I can't think of any reason for the issue. Can you post a full self-contained sample that reproduces the problem?Regards,Lucian
allenconquest Posted July 22, 2008 Author Posted July 22, 2008 I have attached the report that was used to create this output.I'm afraid I don't have the time to create a standalone application to demonstate this, as we have a production incident running because of excessive memory usage by PDF generation. We would be willing to pay for one of your technical guys to help us out.Thanks,Allen
allenconquest Posted July 22, 2008 Author Posted July 22, 2008 I can't seem to attach an XML file. Trying again...
allenconquest Posted July 22, 2008 Author Posted July 22, 2008 <?xml version="1.0" encoding="UTF-8" ?><!-- Created with iReport - A designer for JasperReports --><!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport name="AccountStatementNWB" columnCount="1" printOrder="Vertical" orientation="Landscape" pageWidth="842" pageHeight="595" columnWidth="127" columnSpacing="0" leftMargin="40" rightMargin="40" topMargin="20" bottomMargin="20" whenNoDataType="AllSectionsNoDetail" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="2" /> <reportFont name="Arial_Normal" isDefault="true" fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="VERDANA.TTF" pdfEncoding="Cp1252" isPdfEmbedded="true"/> <reportFont name="Arial_Bold" isDefault="false" fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="VERDANAB.TTF" pdfEncoding="Cp1252" isPdfEmbedded="true"/> <parameter name="SortCode" isForPrompting="true" class="java.lang.String"/> <parameter name="AccountNumber" isForPrompting="true" class="java.lang.String"/> <parameter name="CurrencyAccountNumber" isForPrompting="true" class="java.lang.String"/> <parameter name="IBAN" isForPrompting="true" class="java.lang.String"/> <parameter name="Alias" isForPrompting="true" class="java.lang.String"/> <parameter name="ShortName" isForPrompting="true" class="java.lang.String"/> <parameter name="Currency" isForPrompting="true" class="java.lang.String"/> <parameter name="AccountType" isForPrompting="true" class="java.lang.String"/> <parameter name="BIC" isForPrompting="true" class="java.lang.String"/> <parameter name="BankName" isForPrompting="true" class="java.lang.String"/> <parameter name="BranchName" isForPrompting="true" class="java.lang.String"/> <parameter name="AccountId" isForPrompting="true" class="java.lang.String"/> <parameter name="WarningMessage" isForPrompting="true" class="java.lang.String"/> <field name="date" class="java.lang.String"/> <field name="narrative1" class="java.lang.String"/> <field name="narrative2" class="java.lang.String"/> <field name="narrative3" class="java.lang.String"/> <field name="narrative4" class="java.lang.String"/> <field name="narrative5" class="java.lang.String"/> <field name="numberOfNarrativeLines" class="java.lang.String"/> <field name="type" class="java.lang.String"/> <field name="credit" class="java.lang.String"/> <field name="debit" class="java.lang.String"/> <field name="balance" class="java.lang.String"/> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="273" isSplitAllowed="true" > <image scaleImage="Clip" vAlign="Top" hAlign="Left" isUsingCache="true" evaluationTime="Now" hyperlinkType="None"> <reportElement mode="Opaque" x="0" y="0" width="762" height="100" forecolor="#000000" backcolor="#FFFFFF" key="image" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="None" fill="Solid" /> <imageExpression class="java.lang.String"><![CDATA["nwb_header.gif"]]></imageExpression> </image> <staticText> <reportElement mode="Opaque" x="20" y="100" width="762" height="50" forecolor="#000033" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal" size="26"/> </textElement> <text><![CDATA[Account Statement]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="20" y="150" width="762" height="15" forecolor="#000033" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Account Information]]></text> </staticText> <line direction="TopDown"> <reportElement mode="Opaque" x="10" y="165" width="742" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <staticText> <reportElement mode="Opaque" x="20" y="170" width="150" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[sort code:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="170" y="170" width="240" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{SortCode}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="450" y="170" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Currency:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="550" y="170" width="200" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{Currency}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="20" y="185" width="150" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Account number:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="170" y="185" width="240" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{AccountNumber}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="450" y="185" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Account type:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="550" y="185" width="200" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{AccountType}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="20" y="200" width="150" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Currency account number:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="170" y="200" width="240" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{CurrencyAccountNumber}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="450" y="200" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[bIC:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="550" y="200" width="200" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{BIC}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="20" y="215" width="150" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Alias:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="170" y="215" width="240" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{Alias}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="450" y="215" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[bank name:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="550" y="215" width="200" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{BankName}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="20" y="230" width="150" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[short name:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="170" y="230" width="240" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{ShortName}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="450" y="230" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[branch name:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="550" y="230" width="200" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{BranchName}]]></textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="20" y="245" width="150" height="15" forecolor="#000000" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"> <printWhenExpression><![CDATA[new Boolean($P{IBAN}.length()>1)]]></printWhenExpression> </reportElement> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[iBAN:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="170" y="245" width="240" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="VERDANA.TTF" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{IBAN}]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement mode="Opaque" x="10" y="270" width="742" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> </band> </title> <pageHeader> <band height="20" isSplitAllowed="true" > <staticText> <reportElement mode="Opaque" x="20" y="0" width="80" height="15" forecolor="#000033" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Date]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="100" y="0" width="200" height="15" forecolor="#000033" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Narrative]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="300" y="0" width="81" height="15" forecolor="#000033" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Type]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="381" y="0" width="120" height="15" forecolor="#000033" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Debit]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="501" y="0" width="120" height="15" forecolor="#000033" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Credit]]></text> </staticText> <staticText> <reportElement mode="Opaque" x="621" y="0" width="120" height="15" forecolor="#000033" backcolor="#FFFFFF" key="staticText" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal"/> </textElement> <text><![CDATA[Ledger Balance]]></text> </staticText> <line direction="TopDown"> <reportElement mode="Opaque" x="10" y="17" width="742" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="1" isSplitAllowed="true" > <subreport isUsingCache="true"> <reportElement mode="Opaque" x="0" y="0" width="550" height="1" forecolor="#000000" backcolor="#FFFFFF" key="subreport" &nb
lucianc Posted July 22, 2008 Posted July 22, 2008 Allen wrote: I'm afraid I don't have the time to create a standalone application to demonstate this, as we have a production incident running because of excessive memory usage by PDF generation. We would be willing to pay for one of your technical guys to help us out. You can consult the Jaspersoft Technical Support page for details on how to get paid support for JasperReports.Regards,Lucian
lucianc Posted July 22, 2008 Posted July 22, 2008 I'm trying to upload a JRXML file to see whether we have a general problem with the attachements.
lucianc Posted July 22, 2008 Posted July 22, 2008 Lucian wrote: I'm trying to upload a JRXML file to see whether we have a general problem with the attachements. Apparently we do. I'm also trying to upload an image to see whether the file type makes any difference.
lucianc Posted July 22, 2008 Posted July 22, 2008 One thing that seems wrong in your JRXML is this:<reportFont name="Arial_Normal" fontName="Arial" ... pdfFontName="VERDANA.TTF"/>The fontName and pdfFontName attributes should usually resolve to the same physical font. When this does not happen, report texts can be incorrectly exported to PDF. This might be the cause of the disappearance of the warning text.Regards,Lucian
allenconquest Posted July 23, 2008 Author Posted July 23, 2008 I updated the template to use only one font. So now it says: <reportFont name="Arial_Normal" isDefault="true" fontName="Arial" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="ARIAL.TTF" pdfEncoding="Cp1252" isPdfEmbedded="true"/> and the message line is: <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="10" y="0" width="674" height="15" forecolor="#000000" backcolor="#FFFFFF" key="textField" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font reportFont="Arial_Normal" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{WarningMessage}]]></textFieldExpression> </textField> But these changes have not helped. The text is still not displayed.
lucianc Posted July 23, 2008 Posted July 23, 2008 Does increasing the text field's height make any difference?Regards,Lucian
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