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

george.cristian

Members
  • Posts

    4
  • Joined

  • Last visited

george.cristian'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. Hello, I have a problem removing a line (when it's blank in the footer). I have two frames, A and B (A above B). B can be blank and when it's blank I want A to move down to the bottom of the page (now I have an empty space between A and the bottom of the page). I have set isRemoveLineWhenBlank="true" for B but with no success. Also, I have tried setting positionType="FixRelativeToBottom". Here is my code: <pageFooter> <band height="35"> <frame> <reportElement mode="Opaque" x="0" y="10" width="550" height="10" backcolor="white"/> <box> <pen lineColor="black"/> <topPen lineWidth="0.5"/> </box> <textField> <reportElement mode="Opaque" x="0" y="0" width="400" height="10" style="Margins" backcolor="white"/> <textElement verticalAlignment="Bottom" textAlignment="Left"/> <textFieldExpression><![CDATA[$P{CodElement}+" - "+$P{cod_formular}]]></textFieldExpression> </textField> <textField evaluationTime="Now"> <reportElement mode="Opaque" x="400" y="0" width="130" height="10" style="Margins" backcolor="white"/> <textElement verticalAlignment="Bottom" textAlignment="Right"/> <textFieldExpression><![CDATA["Pagina "+$V{PAGE_NUMBER}+" din"]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement mode="Opaque" x="530" y="0" width="20" height="10" style="Margins" backcolor="white"/> <textElement verticalAlignment="Bottom" textAlignment="Left"/> <textFieldExpression><![CDATA[" "+$V{PAGE_NUMBER}]]></textFieldExpression> </textField> </frame> <frame> <reportElement mode="Opaque" x="0" y="20" width="550" height="15" isRemoveLineWhenBlank="true"> <printWhenExpression><![CDATA[$P{isContGratuit}]]></printWhenExpression> </reportElement> <textField> <reportElement mode="Opaque" x="75" y="0" width="250" height="15" backcolor="white"/> <textElement markup="styled" verticalAlignment="Bottom" textAlignment="Right"/> <textFieldExpression><![CDATA["Formular generat cu varianta <style isBold=true">gratuita</style> a programului]]></textFieldExpression> </textField> <image scaleImage="RetainShape" hAlign="Center" vAlign="Bottom"> <reportElement x="330" y="0" width="45" height="15" key="xls.export.hidden"/> <graphicElement/> <imageExpression class="java.awt.Image"><![CDATA[$P{SmallLogo}]]></imageExpression> </image> <textField> <reportElement mode="Opaque" x="380" y="0" width="95" height="15" backcolor="white"/> <textElement verticalAlignment="Bottom" textAlignment="Left"/> <textFieldExpression><![CDATA["(www.eDevize.ro)"]]></textFieldExpression> </textField> </frame> </band> </pageFooter>[/code]
  2. I can't print on a next page. I have 4 files .jrxml interconnected. I want the last file to be printed to a new page but just some parts are printed (for example: just some columns). I have a group, then groupFooter and Header, title and some frames. How can I put these all together on a new page? That's the structure of my code ("............." means content, for example elementGroups, textfields, staticTexts) <group name="Categorii" isStartNewPage="true" > <groupExpression><![CDATA[$F{parameter}]]></groupExpression> <groupHeader> <band height="20"> <printWhenExpression><![CDATA[boolean.valueOf($F{parameter}.equals(Boolean.FALSE))]]></printWhenExpression>....................................... </band> </groupHeader> <groupFooter> <band height="20"> <printWhenExpression><![CDATA[boolean.valueOf($F{parameter}.equals(Boolean.FALSE))]]></printWhenExpression>.................................. </band> </groupFooter> </group> <!-- set title--> <title> <band height="50"> <printWhenExpression><![CDATA[boolean.valueOf($F{parameter}.equals(Boolean.FALSE))]]></printWhenExpression> <frame>..................................... </frame> </band> </title> <columnHeader> <!-- First row --> <band height="15"> <printWhenExpression><![CDATA[boolean.valueOf($F{parameter}.equals(Boolean.FALSE))]]></printWhenExpression>............................ </band> </columnHeader> <detail>.......................</detail> <summary> <band height="55"> <frame>........................... </frame> <frame>............................ </frame> </band> </summary></jasperReport>
  3. I have a band with two frames in it: frame1 and frame2. On a report I have to display frame1 and after that frame2, and on another report I have to display frame2 before frame1. The rest of the report is the same. I am asking if it's there a way to do this without creating a new jrxml file.
  4. I have a structure like this: Category 1 - Name Category 2 - Name Category 3 - Name Ingredient 1 - Price Ingredient 2 - Price Category 3 - Total Value Category 2 - Total Value Category 1 - Total Value How I defined it, it doesn't print Category 1 - Name and Category 1 - Total Value, because I can't figure out how to print in a recursive manner. In my jrxml I ahve defined 4 fields for the categories: category_name, category_value, imbricated_category_name and imbricated_category_value.
×
×
  • Create New...