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

mitch_2

Members
  • Posts

    8
  • Joined

  • Last visited

mitch_2'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. All along, when I run "preview" in iReport this works fine. Is there anything I can look for in the way the report is kicked off in our Java code that could affect this?
  2. I have a report that uses a Background image at the bottom of the page. When I run the report in iReport (version 5.0.4) it generates the PDF and it looks perfect, but after deploying to my web app (using the same database), the image does not print on the first page. I have played with the position of the image in the background, and the "split type" parameter in the Background band properties, but cannot figure out what is wrong. My understanding is that the background image should print no matter what the detail or other bands print! I looked for any parameters on the main report that might work like Word does, where you can say something like "skip first page", but have not found anything like this. This is a master report with multiple subreports, and a "no data" section as well. The main report is 612w x 792h, and the margins are all zero (to accomodate giving the subreports maximum space). To make room for the background image, the background band height is 750, with split type "stretch" (I tried all of the different split types, and none changed the behavior). The background band is "FixRelativeToBottom"and has x=19, y=700, width=570, height=50. To sum up: Running the report in iReport is perfect... the image shows up on all pages. Running in production (we have customer code that generates the reports), I only get the image on the 2nd page, not the 1st). I Googled for this to look for either some other parameter that might be preventing it from printing on the 1st page only with no luck... ditto for looking for any sign that others had this issue, perhaps as a bug. Any suggestions would be greatly appreciated. Mitch p.s. I went back and tried to use the Page Footer band instead, but ran into the same problem many people have already noted, that the last page footer will not hug the bottom of the page, to which many other replied that one should use the Background band to enforce this.
  3. Ankur, thanks for your reply, but I tried setting the split type for the subreport detail band to "prevent" (this is where the list lives), but it did not change the behavior at all. And I don't see any option called "Stretch with overflow" in iReports 5.0.4. Do you mean "stretch type"? If so, I tried setting it to "Relative to Band Height", as that sort of makes sense, but it did not change the behavior... IOW, on a new page, all of the list data flowed down the first column, even though the band height that contains the list is only 50. I tried another idea that I thought might work, but it is behaving strangely as well. I tried to add a column break to the list, thinking I could use a "PrintWhen" expression to force a column break every 6 items, which would give me the look I want. The problem is that with the column break there, I get a null pointer exception consistently (but not without it!). I have not been able to find much in the way of documentation about exactly how column break should be used, at least not in the main iReport docs and via Google. One final item... I had wrapped the list inside a frame, thinking that the frame might be the way to "force" a bounded size, but obviously that did not work. I don't think it changes the behavior, but I wanted to mention id.
  4. I have spent a day at least trying to get this to work, with no success. I have a master report with multiple subreports. One of the subreports gets data from a list, which has its own SQL query. Everything works as far as the connection, passing parameters, etc. The subreport is set up to use 5 columns. Each column is a small image and a text field. Again, this data comes through fine. If I run the subreport standalone, it looks pretty good, i.e., the data is correct and I also get the columns. When I run the master report, however, the subreport in question will start to print at the bottom of one page, and the columns kick in, but since it usually spills over to a new page, on the new page the first column goes all the way down the page. What I really want I am starting to fear I cannot do, namely, force the entire subreport data to be in a "box" that will cause there to be 5 columns. I tried putting everything in a frame, hoping that would "force" what I wanted, but it will not. It seems almost like that using columns to get the particular look I want (I am trying to duplicate another Access report) may not be possible. While the data does not change much, I still think using a dynamic list is the right way to go. I just want to force it inside a box where it will always wrap to 5 columns. I have tried every combination of stretch type and band parameters, based on many Google searches, but cannot make this work. Am I simply on the wrong track? Any advice would be greatly appreciated. I attached a screen shot from what the subreport looks like stand-alone, which is good, but it will not print this way from the master report. Thanks, Mitch
  5. I think I know how to do this using subreports, but I was hoping there might be a way to do it the way I asked... thanks again.
  6. I have a fairly straightforward Jasper Report that uses Grouping for up to 8 groups. When I run it, it correctly groups and prints, but each group is on a new page. Although there are several SO and other questions that ask this same thing, I have not been able to get this to work. What I want is exactly what I have now, but instead, for each group to lay out horizontally on the page. The report property "print order", which several people allude to, is not changing this behavior. And when I tried setting "columns" to 3, it simply takes the first group and spreads its data over 3 columns, and then starts the next group on a new page. I have tried every other combination of parameters that might prevent this, but without success. Does anyone know if I can show the groups horizontally across the page?
×
×
  • Create New...