Jump to content

cris_maco

Members
  • Posts

    2
  • Joined

  • Last visited

cris_maco'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. Of course. I add two screenshot, one of the pdf and other of the jasper view thank you
  2. Hi everyone, First of all, sorry for my english, I hope you would understand me ;) Well, I've got a detail band and on it are dynamic and static texts. The dynamic ones are loaded from data base, so I don't know the length of this text, it could be more than 1000 characters or less. What it happens right now on my jasper report is that with the same text in all of the boxes, in two of them it cuts and in the last doesn't. All have the same properties, so I don't know what is happening. I post some code to explain me better. The texts that are cutting are referring by the properties $P{Informe} and $P{TextoAdicional1} and the text that look good is $P{TextoAdicional2} The version I use for jasper report is 2.0.1. by requirements of the project. I've tried a lot of things but it doesn't fix. If somebody has an idea, please tell me. I really need help. Thanks to everybody Code:<detail> <band height="266" isSplitAllowed="true" > <staticText> <reportElement x="154" y="16" width="381" height="33" key="staticText-7"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Justified"> <font fontName="Times New Roman" pdfFontName="Helvetica-Bold" size="9" isBold="true"/> </textElement> <text><![CDATA[Texto estático]]></text> </staticText> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="154" y="49" width="381" height="26" key="textField" positionType="Float"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Justified"> <font fontName="Times New Roman" size="10" isPdfEmbedded ="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{Informe}]]></textFieldExpression> </textField> <subreport isUsingCache="true"> <reportElement x="6" y="16" width="125" height="179" key="subreport-1"/> <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($P{LstGrupos})]]></dataSourceExpression> <subreportExpression class="java.lang.String"><![CDATA["./resources/jasperReport/input/grupos.jasper"]]></subreportExpression> </subreport> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="154" y="105" width="381" height="65" key="textField-11" positionType="Float"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Justified"> <font fontName="Times New Roman" size="10" isPdfEmbedded ="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{TextoAdicional1}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="154" y="81" width="381" height="23" key="staticText-15" positionType="Float"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Justified" verticalAlignment="Middle"> <font fontName="Times New Roman" pdfFontName="Helvetica-Bold" size="9" isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LabelTextoAdicional1}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="154" y="175" width="381" height="23" key="staticText-16" positionType="Float"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Justified" verticalAlignment="Middle"> <font fontName="Times New Roman" pdfFontName="Helvetica-Bold" size="9" isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LabelTextoAdicional2}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="154" y="200" width="381" height="65" key="textField-12" positionType="Float"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Justified"> <font fontName="Times New Roman" size="10" isPdfEmbedded ="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{TextoAdicional2}]]></textFieldExpression> </textField> </band> </detail>
×
×
  • Create New...