Hi !!
I am a new user to Jasper Reports, and i am caught with a serious problem in my project.
I have a report template in which i've created two subreports, placed one below the other in detail band. I've set "split allowed = true" for the detail band and "isStretchWithOverflow = true" for both the subreports. But when the contents in upper subreport overflows, it overwrites the contents of the lower subreport. Is there any method to dyanamically shift down the lower report if the contents of first subreport overflows.
I'm also having a similar problem with text fields where i need to dyanamically shift down the contents of a text field if the contents of report part above it expands.
[file name=medicalRecordMain.jrxml size=22470]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/med...
I am a new user to Jasper Reports, and i am caught with a serious problem in my project.
I have a report template in which i've created two subreports, placed one below the other in detail band. I've set "split allowed = true" for the detail band and "isStretchWithOverflow = true" for both the subreports. But when the contents in upper subreport overflows, it overwrites the contents of the lower subreport. Is there any method to dyanamically shift down the lower report if the contents of first subreport overflows.
I'm also having a similar problem with text fields where i need to dyanamically shift down the contents of a text field if the contents of report part above it expands.
[file name=medicalRecordMain.jrxml size=22470]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/med...
13 Answers:
Posted on August 7, 2007 at 5:17pm
Thanks you lucianc.... the solution to my problem that you suggested worked wonders... thanks again
it is so amazing to know that i had set almost 2 days trying different things to solve my problem and the solution was so easy.
can you do me one more favour... please suggest me some good reading material on developing jasper reports using ireport... i surfed the material readily available but didn't think that it is good enough to give one conceptual knowledge on jasper reports
it is so amazing to know that i had set almost 2 days trying different things to solve my problem and the solution was so easy.
can you do me one more favour... please suggest me some good reading material on developing jasper reports using ireport... i surfed the material readily available but didn't think that it is good enough to give one conceptual knowledge on jasper reports
Posted on August 10, 2007 at 8:34am
vaishnav_piyush wrote:
I'm afraid I can't suggest anything more than what is on [url=http://jasperforge.org/sf/wiki/do/viewPage/projects.jasperreports/wiki/H... page. The samples included in the JasperReports project distribution are also a good way of learning what JR can do and how it works.
Regards,
Lucian
Post edited by: lucianc, at: 2007/08/10 08:35
please suggest me some good reading material on developing jasper reports using ireport... i surfed the material readily available but didn't think that it is good enough to give one conceptual knowledge on jasper reports |
I'm afraid I can't suggest anything more than what is on [url=http://jasperforge.org/sf/wiki/do/viewPage/projects.jasperreports/wiki/H... page. The samples included in the JasperReports project distribution are also a good way of learning what JR can do and how it works.
Regards,
Lucian
Post edited by: lucianc, at: 2007/08/10 08:35
Posted on August 17, 2007 at 2:34pm
Posted on November 9, 2007 at 4:22pm
vk01 wrote:
Yes.
Make sure that your subreport elements in the master JRXML do overlap on the horizontal/x axis and that the second is positioned under the first (with no vertical/y overlapping).
Regards,
Lucian
would this work the same if the subreports where placed in the "summary" part of the document? |
Yes.
Make sure that your subreport elements in the master JRXML do overlap on the horizontal/x axis and that the second is positioned under the first (with no vertical/y overlapping).
Regards,
Lucian
Posted on November 12, 2007 at 1:18pm
vk01 wrote:
As I said, the engine checks whether the two elements overlap on the horizontal axis. When the elements have 0 as declared width, they do not occupy any space on the horizontal axis, and therefore there is no overlap.
Why did this make a difference, setting width to 1? |
As I said, the engine checks whether the two elements overlap on the horizontal axis. When the elements have 0 as declared width, they do not occupy any space on the horizontal axis, and therefore there is no overlap.
Code: |
Why didn't setting the position type to FLOAT for the second subreport work?</td></tr></tbody></table><br /> <br /> Position type Float works only when the condition above (regarding the horizontal overlapping) holds.<br /> <br /> Regards,<br /> Lucian |