Jump to content
Changes to the Jaspersoft community edition download ×

jbenway

Members
  • Posts

    6
  • Joined

  • Last visited

jbenway's Achievements

  1. Is the text in the fields left aligned or center aligned? Is there any padding set on some fields and not others? Check for padding under "borders" and look at line spacing, alignment, spacing before, etc on Textfield. Make sure they are all the same.
  2. I'm creating some small pie charts in a subreport. I have the chart set to use the aegean theme and to hide labels. When I preview the subreport, I get what I expect: When I use the "java" preview the main report, which calls this subreport, it shows the labels. Following advice I read on this forum, I tried to fix this by setting the labels to null. This had the effect of not showing the labels but unfortunately, it still reserves space for them, so I end up with very small pies indeed. Further, when I preview the main report using PDF (which is what I need in the end) it also loses the aegean theme and uses the default theme (which has a shadow and no box around it). If I view the subreport as PDF, it comes out fine, hiding the labels and using the theme I selected. Any way to get the main report and PDF export of same to look like the subreport PDF export?
  3. Thank you! This worked, with a fair amount of tweaking. I really appreciate it. The keys were a) to start with this tutorial on lists, which are more complex that other stuff I've done so far: http://community.jaspersoft.com/wiki/lists-jaspersoft-studio Also, I had a lot of trouble mapping the "type" field properly for use with a PrintWhen expression. What I ended up doing instead was to create two separate fields in the dataset that I created (based on the tutorial), one for ColorDark and the other for ColorLight. To define ColorDark in the dataset, I used color[../type=dark] Then I created two separate lists as you suggested, each with a textfield mapped to their own field, and set it to Blank when Null and Remove Line When Blank
  4. Thank you so much for the response! Unfortunately, making these changes doesn't seem to help. I think it might be because the, as the hover text for remove line when blank says, it collapses the band if the element is not printing AND no other element is occupying the same horizontal space. I'm guessing that "green" in my example above is not moving up next to "red" because red is occupying horizontal space. As an experiment, I tried lining my two fields up vertically: $F{color} $F{color} and in this case the setting you recommend does close up those blank lines. However, I need the two fields to be alongside each other.
  5. You can create another detail band by right-clicking your detail band in the outline and choosing "create band". But to have another header and footer, I think you need to create a subreport for each table. Set up each table with its header and footer in their own report. Then in the master report, put two subreport components into the summary band and link them to your reports.
  6. I need to display data that is coming in from one field in two different text fields, depending on an attribute of that data. The result should be two columns, similar to what you would get in a table. My data comes in XML formatted like this: <color> blue <type>dark</type></color> <color>red<type>light</type></color> <color> green <type>dark</type></color> <color>yellow<type>light</type></color> What I want the output to be is: DarkLightblueredgreenyellowI put these onto my report with two textfields and a print when expression. Each field displays "color" but the one on the left displays when type=dark, and the one on the right prints when type=light Unfortunately, this results in a output like this: DarkLightblue redgreen yellowIs there another way I can do this that will let me sort my two types of data from a single field into two table-like columns?
×
×
  • Create New...