Jump to content

careysb

Members
  • Posts

    3
  • Joined

  • Last visited

careysb's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Does anyone know how to define a column header in jrxml so that the static text will word wrap? I want longer header names to be split accross multiple lines. I've tried adding 'isStretchWithOverflow="true"' to the staticText tag but the compiler complains. Is there another approach I could take? -- Carey
  2. I'm trying to create a report (JasperPrint) heirarchy using Java. I'm creating a piece of text (JRPrintText) and inserting that inside a frame (JRBasePrintFrame) and inserting that in a page (JRPrintPage), and finally, inserting that inside the report (JasperPrint). This mostly works. The problem that I'm running into is that the text will not wrap and stretch the frame, which is what I thought frames were used for. After poking around in the Jasper source code for a while, it appears that somewhere along the line I need to make used of one or more of the 'filler' classes. The fillers seem to be the only place that the 'stretch' is calculated. However, I haven't been able to figure out how to connect the fillers to the report objects. Has anyone had experience with this? Carey
  3. I'm trying to get a column to word wrap when the data is too long to fit in the given column width. I've tried to set isStretchWithOverflow to 'true', but it seems to have no effect. The text does wrap (whether true or false) except the wrapped text overprints the beginning portion of the text, rather than being placed below it. Any help would be greatly appreciated. Carey Code: <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="110" y="5" width="100" height="12" key="offeringDescription1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement><font/></textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{offeringDescription1}.trim()]]></textFieldExpression> </textField>
×
×
  • Create New...