Jump to content
We've recently updated our Privacy Statement, available here ×

marion.baumgartner

Members
  • Posts

    3
  • Joined

  • Last visited

marion.baumgartner'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. When I add a hyperlink that stretches over multiple lines this leaves a gap of a couple of pixels between the lines where the link is not clickable. Is there a way to avoid this gap so that the link is continuously clickable over the lines it stretches? Thansk for any idea or help of how to avoid this. Below is the code I am using to add the hyperlink (f${URL} is defined as a string filed <field name="URL" class="java.lang.String"/> and is passed in from the main report. : <textField textAdjust="StretchHeight" isBlankWhenNull="true" hyperlinkType="Reference"> <reportElement positionType="Float" stretchType="ContainerBottom" x="0" y="0" width="300" height="9" isPrintWhenDetailOverflows="true" forecolor="#4C8FBA" uuid="010fa648-c53e-4fa5-82ab-ce9a63ed9bd5"> <property name="local_mesure_unity" value="pixel"/> <property name="local_mesure_unitheight" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[!($F{URL}.equals("") || $F{URL} == null)]]></printWhenExpression> </reportElement> <box topPadding="0" bottomPadding="3"/> <textElement verticalAlignment="Top"> <font fontName="Cadastra" size="6"/> <paragraph leftIndent="8" spacingBefore="0" spacingAfter="2"/> </textElement> <textFieldExpression><![CDATA[$F{URL}]]></textFieldExpression> <hyperlinkReferenceExpression><![CDATA[$F{URL}]]></hyperlinkReferenceExpression> <hyperlinkTooltipExpression><![CDATA[$F{URL}]]></hyperlinkTooltipExpression> </textField>[/code]
  2. I am trying to add a table of contents in a report book using the following example: https://github.com/TIBCOSoftware/jasperreports/blob/master/jasperreports/demo/samples/tableofcontents/reports/TablePart.jrxml The difference from the example mentioned above and my case is that I have more information that goes on the TOC (table of contents) report page. This information in is in form of sub-reports and text fields which have heights that are not known on design time. What I tried was to add the TOC information in one detail band and the rest in another. This does not work as all the detail bands are repeated for all the TOC entries. Next I tried to add the TOC information using a sub-report. However this results in wrong page numbers as soon as there are multiple pages for the TOC section. (Apparently because sub-reports can not deal well with page numbering). Is there any other way that this can be be achieved, keeping the styling and the page number? The jrxml used for the table of contents is this: https://github.com/openoereb/pyramid_oereb/blob/master/print/print-apps/oereb/toc.jrxml and in this version a sub-report is used to embed the actual TOC https://github.com/openoereb/pyramid_oereb/blob/master/print/print-apps/oereb/toc.jrxml#L197 which leads to a wrong page numbering. Thank for any hint.
×
×
  • Create New...