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

almoes16

Members
  • Posts

    15
  • Joined

  • Last visited

almoes16's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. I have created a normal report that consists with a header and a band detail, in the band datail i have imported a subreport. In the subreport I have set the margins to 0 and in the report I have aligned the subreport element to the top of the band. Well everything seems fine until I print the report and the detail is placed 2 mm under the bottom of the header band. I would like that the detail band is just under the header without any extra space between each other. Someone know why is the extra space created? Someone know how to remove it? Thanks in advance Post Edited by almoes16 at 08/27/2012 11:57
  2. What I understood is that you want to print arrays of information: this is so easy as to generate the fields with you bean attributes in the band detail, the band will repeat so many times as iterations of your bean you have.
  3. Ok it worked. But there is still a problem, the item when is to big jump to the next page but if I introduce a second item, instead of adding it in the same page than the first item (the 2nd page of the report) it is added in a 3rd page. If I introduce more items (4, 5...) they work fine, they are added inmediatly under the second item, without changing page. More curious things, I have introduce a heather page that should be printed if the page is not the first one. But when the first item jump to the second page the heather is not printed. When I add more items the heathere is printed in the consecutive pages. Thanks a lot for your answere!!!
  4. the first option I tried, but the problem is that I don't know why when I select prevent it changes to stretch and I can't select prevent. The second option I can't understand well how to do that, could you explain me? Thanks a lot!!!
  5. try to put the field "page number" in te main report.
  6. I'll try to help u, but I need you attach here you .jrxml so I'll see what is you mistake.
  7. It seems no one has an idea how to resolve it. I have been trying to insert a "page break" on the top of the detail band and set the property "print when detail overflow" but the problem now is that "the page break" is always inserted, even if the detail doesn't overflow (there is enough space to insert all the information). If someone has an idea how to resolve my problem I would appreciate a lot her/his help!
  8. After some hours trying to find an alternative solution to this post and checking in different forums an answere I could find a solution by myself. As I couldn't find in any place a solution I'm going to write here what I did: 1- I created the list with a width of 120 px (for example). 2- In the properties of hte list there is a parameter called Item width, I have addjusted that to 40 px. 3- When I printed I got to print the three elements in horizontall. If I add more than 3 items a new row is created due to the size of the list just accept 3 items with size 30px.
  9. hello people! I'm using ireport 4.5 and I have used the list component in my report. I have a problem when I try to fill it. I would like to choose the option to print horizontally, but when I print the list, the items are still printed vertically. How I would like it works: aa 111- bb 222-cc 333 How it works: aa 111 bb 222 cc 333 Is it possible to use the list component to print horizontall lists? or should I use another component? (in this case what can I use?) Thanks
  10. Do you have the groovy libraries? You have two possible solutions here: http://grails-groovy.blogspot.com/2009/08/groovy-compilation-problem-while.html Try first to remove groovy language (1st solution) if it doesn't work, as it happened to me once, it is because you need to use groovy language so you need the jar (2nd solution).
  11. hello people, I'm trying to perform a report in which the first page has a header and a footer, between them there is a detail where I would like to print just one iteration. In the next pages I will print more iterations. My problem is that each iteration can have different lists so the detail band can be very high, when it happens in hte first page the information split in two pages. I would like to prevent that, if the detail band is to high to be in hte first page I want to print it in the second page, printing in the first page just the header and the footer. Any idea? Thanks in advance!
  12. The problem was I was confused with the name of the parameters, I thought the names the estandard parameters have in datasource where the same as in the report because they were the same variables, but it was not correct. Anyway thanks for your answere and for the optional way you explained me for add a value to the parameter in datasource.
  13. I have been trying and I got a solution: in the datasource of the list appear the parameter REPORT_RESOURCE_BUNDLE, but in spite of it has the same name as the parameter "REPORT_RESOURCE_BUNDLE" of the report, it is not the same parameter. So we must add: <datasetParameter name="REPORT_RESOURCE_BUNDLE"> <datasetParameterExpression><![CDATA[$P{REPORT_RESOURCE_BUNDLE}]]></datasetParameterExpression> </datasetParameter> In this code we introduce REPORT_RESOURCE_BUNDLE from the report in REPORT_RESOURCE_BUNDLE from datasource.
  14. Hej people! I'm working with the component list in iReport, in the list I have 3 different fields. One of them is a field from I would like to get a String that I get from the Report_Resource_Bundle. So I thought to write this code in the textfield, as I have done in other parts of the report where textfields where not inside the list component: $P{REPORT_RESOURCE_BUNDLE}.getString($F{category}) The problem is that when the report is created I get a "null" in the textfield. I wrote exactly the same code but positioning the textfield outside the list and I get the String I want. Can someone help me? Thanks in advance!
×
×
  • Create New...