munga Posted January 15, 2008 Share Posted January 15, 2008 Hi, I have a simply report that I would like to display a site diary entry. Each diary entry has multiple varchar fields some of which are 10000 char long. I currently have each text field in its own frame and if the detail band is high enough all data is display correctly else it is truncated at the height of the band. What I would like to do is have the band height grow to fit the record data, so the band height maybe as small as a couple of lines or grow to muliple pages in length. Does anyone know if this can been done with jasperReports? thanksmunga Link to comment Share on other sites More sharing options...
C-Box Posted January 15, 2008 Share Posted January 15, 2008 Just use the "StretchWithOverflow" Property at your textfield (at the textexpression tab in iReport). Set it to true and your textfield will stretch according to the value of the field. Note, that you have to set your other elements (rectangles, lines, etc) stretching themselves according to bandheight dynamically to keep your design working if the fields stretch. (element properties --> StretchType) hthC-Box Link to comment Share on other sites More sharing options...
munga Posted January 15, 2008 Author Share Posted January 15, 2008 That's already set. What I'm trying to do is stretch the band when needed by the text fields. Post edited by: munga, at: 2008/01/15 11:56 Link to comment Share on other sites More sharing options...
munga Posted January 15, 2008 Author Share Posted January 15, 2008 Here is a cut down version of my report file. Any help would be appreciated.thanksmunga [file name=day_diary-db18d3b06a339b48652683346586e43a.jrxml size=7151]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/day_diary-db18d3b06a339b48652683346586e43a.jrxml[/file]Post edited by: munga, at: 2008/01/15 11:55 Link to comment Share on other sites More sharing options...
lucianc Posted January 15, 2008 Share Posted January 15, 2008 In horizontal reports, the detail band does not stretch. However, I don't think you really want to have printOrder="Horizontal" since you have columnCount="1", therefore you should simply set printOrder="Vertical" to allow the detail band to stretch. HTH,Lucian Link to comment Share on other sites More sharing options...
munga Posted January 16, 2008 Author Share Posted January 16, 2008 Thanks very much Lucian, That was the problem. The only other thing I had to do is set the frames Stretch Type to 'No Stretch' which was a bit confusing but hey it works :). thanks again.munga Link to comment Share on other sites More sharing options...
venuwin Posted June 17, 2008 Share Posted June 17, 2008 Hi Lucian, I am also having the same issue of dynamically stretching the detail band.In my case i have 4 columns - so i can't resort to vertical printorder. Please suggest. Thank you very much for your valuable reply for my post related to request params in jasper report. It helped me a lot. --Venu Link to comment Share on other sites More sharing options...
lucianc Posted June 19, 2008 Share Posted June 19, 2008 venuwin wrote:In my case i have 4 columns - so i can't resort to vertical printorder. Please suggest. Detail bands in horizontal reports are not able to stretch. Afaik, there is no workaround for this. If you think such functionality is required, please post it as a feature request here. Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now