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

akosolapov83

Members
  • Posts

    10
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by akosolapov83

  1. Hi. Is it possible to define the first row on each page? $V{PAGE_COUNT} and other variables don't work correctly when textfield stretched from previous page. All counters have values for previous page, not for current. Same problem with "Split Type = Prevent". Thanks. ps: jasperreports 4.5.1
  2. Hi. Is it possible to configure text field so that it would be stretched by fixed portion? I have text field with isStretchWithOverflow="true". And for example height=15. I need this textfield be stretched by another 15 (or 30, 45, etc) if current height is not enough. Not 5 or 12, or 36. Multiple of 15 only. Is there any trick to do this? Maybe some set of font size, fixed line spacing size, paddings.. ?
  3. I didn't get it. Do you want each subreport to be printed on separate page?
  4. I tried find same problem solution http://community.jaspersoft.com/questions/1032371/how-stretch-subreport-following-parent No solution.
  5. You can pass your sql query as string parameter. And then use it like this: <queryString> <![CDATA[$P!{SQL_QUERY}]]> </queryString>
  6. I didn't clearly realize your problem, but you can try to put your row textfileds in same frame.
  7. Hi. I have two reports: main and subreport. In main detail band i have textfield and subreport: <band height="15" splitType="Stretch"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="cell" stretchType="RelativeToBandHeight" x="20" y="0" width="200" height="15" isPrintWhenDetailOverflows="true"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="DejaVu Sans" size="7" isBold="true"/> <paragraph leftIndent="1" rightIndent="1" spacingBefore="1" spacingAfter="1"/> </textElement> <textFieldExpression><![CDATA[$F{org_name}]]></textFieldExpression> </textField> <subreport> <reportElement stretchType="RelativeToTallestObject" x="220" y="0" width="582" height="15" isPrintWhenDetailOverflows="true"> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <subreportParameter name="SUBREPORT_DIR"> <subreportParameterExpression> <![CDATA[$P{SUBREPORT_DIR}]]> </subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[$F{EDU_LEVEL_DATASOURCE}]]></dataSourceExpression> <subreportExpression> <![CDATA[$P{SUBREPORT_DIR} + "/reports/scholarship_fund_analysis/sub_education_level.jasper"]]> </subreportExpression> </subreport></band>[/code]And there is one textfield in subreport's detail band. The purpose is to implement something like rowSpan for "org_name" textField in main report. it works fine when subreport has a lot of content. The problem arises when org_name is too long, and subreport has few rows. The height of org_name textfield is greater than total height of subreport. Result report looks like this: Is it possible to fix this?
  8. Hi. A have textField and subreport placed at one detail band next to each other. Code: <band height="14" splitType="Stretch"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="cell" stretchType="RelativeToBandHeight" x="149" y="0" width="25" height="14" isPrintWhenDetailOverflows="true"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial" size="6" isBold="false"/> </textElement> <textFieldExpression><![CDATA[$F{RZPR}]]></textFieldExpression> </textField> <subreport> <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="802" height="14"/> <dataSourceExpression><![CDATA[$F{CSR_SUB}]]></dataSourceExpression> <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "cashflowplan/sub_all.jasper"]]></subreportExpression> </subreport></band>Sometimes this leads to shown in the picture TextField takes all the space available on the first page. But the textfields from subreport's detail band move to the next page, leaving empty space at the end of the first page. How can this problem be solved?
×
×
  • Create New...