thangalin Posted November 19, 2009 Share Posted November 19, 2009 Hi,The first attached image shows the detail band with a number of text fields.The second attached image shows the results of the report, as a PDF.The problem is that the COMMENT_TEXT field is not stretching vertically to accommodate the full text.When the COMMENT_TEXT is moved to the Summary band, the vertical stretch applies okay, but since it is in the Summary band, only the last COMMENT_TEXT is ever fully displayed.How can we get the COMMENT_TEXT to stretch vertically (and thus show all 4000 characters)?We have tried: Creating a subreport. Creating a 2nd detail band. Creating a group footer. Reading the documentation. ;-) Messing with various values all day long.Nothing seems to get the text to stretch. Any ideas would be greatly appreciated.Thank you!DavePost Edited by thangalin at 11/19/2009 16:59Post Edited by thangalin at 11/19/2009 18:00Post Edited by thangalin at 11/23/2009 16:46 Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted November 19, 2009 Share Posted November 19, 2009 The report looks ok. Be sure you are setting all the elements to be positioned as Float (position type float). It could be some element is overlapping your text.Giulio Link to comment Share on other sites More sharing options...
thangalin Posted November 19, 2009 Author Share Posted November 19, 2009 All the elements are set to Float, including those in the Page Header.The COMMENT_TEXT section of the report remains unstretched.I changed the report as follows:-> Main Report -> ActionItems Subreport -> AcitionItemComment SubreportIn the ActionItems Subreport, there is a Group Footer band, which includes the AcitionItemComment Subreport. The only item in the ActionIttemComment report is the COMMENT_TEXT. All items are set to Float.When the COMMENT_TEXT is placed in the Detail 1 band, it does not stretch. When placed in the Summary band, it stretches. The problem, however, remains: only the last action item comment is ever displayed.Other ideas?Post Edited by thangalin at 11/19/2009 17:20 Link to comment Share on other sites More sharing options...
svenn Posted November 19, 2009 Share Posted November 19, 2009 First thanks for the laugh. Awesome test data. /tools/fckeditor/editor/images/smiley/msn/teeth_smile.gifI can not see anything wrong with the properties on the field. Could you post your jrxml file? Link to comment Share on other sites More sharing options...
thangalin Posted November 19, 2009 Author Share Posted November 19, 2009 I have attached the Summary report and the ActionItems subreport. Glad you enjoyed the test data.Thanks for taking a look. Link to comment Share on other sites More sharing options...
vivekkohli Posted November 20, 2009 Share Posted November 20, 2009 Add a new temp group with no field latched to it, i.e leave the roup exp part empty for the group.Place the field that u want to stretch with overflow there.Nothing will overlap and it will work fine. Link to comment Share on other sites More sharing options...
vivekkohli Posted November 20, 2009 Share Posted November 20, 2009 And that field should be the last field in that group.Other wise it will overlap with the field that occurs after this stretch with overflow field Link to comment Share on other sites More sharing options...
thangalin Posted November 20, 2009 Author Share Posted November 20, 2009 Hi, vivekkohli.The COMMENT_TEXT field, when using a group with no group expression, appears. However, it only shows up for the last item in the group.The attached images: missing-comment.png - Shows the full report. I am trying to get the description for "Anti-Slip Surfaces on Walkways #2" to appear directly below the line. grouped-comment-text.png - Shows that the COMMENT_TEXT is in a group by itself. The group has no expression part. As can be seen by the missing-comment.png image, the text does get stretched, but only for the last item returned. data.png - Confirms that there is text in the database for the comment.Any other suggestions out there?Thanks in advance,DavePost Edited by thangalin at 11/20/2009 20:08 Link to comment Share on other sites More sharing options...
thangalin Posted November 20, 2009 Author Share Posted November 20, 2009 Problem still exists. Post Edited by thangalin at 11/21/2009 01:09 Link to comment Share on other sites More sharing options...
thangalin Posted November 21, 2009 Author Share Posted November 21, 2009 Attached is a picture illustrating that the problem persists.Both action items in the image have commented text in the database.The Summary section is part of the main report. The action item name, assignee, etc. are part of the subreport.I added an Action Item Group (Footer) to the main report, which includes the subreport.I added an Action Item Group (Footer) to the subreport, which allows the comment text to grow.The problem is that I can get the comment text to grow (as in the first image), or get the first line of both comment texts to appear (as in the second image), but cannot do both at the same time.Any more ideas?Dave Link to comment Share on other sites More sharing options...
thangalin Posted November 21, 2009 Author Share Posted November 21, 2009 The problem was that the Group Expression had to be set to the unique key so that the grouping would apply once every row.Problem resolved.Thank you, again! 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