sugita Posted April 20, 2010 Share Posted April 20, 2010 Hi,How do we fix column height and width based on the Data Size in Database. Suppose I have a character width of 240 bytes in Database. I want to show it in Excel Report without using Stretch functionality. Using Stretch causes columns to get merged and further creates issue in Sorting in Excel.Please help.Regards,Sugita Link to comment Share on other sites More sharing options...
slow Posted April 21, 2010 Share Posted April 21, 2010 I think, but I hope I'm wrong, that there is no way to make parametric definition of a report element than to do it programmatically... that means creating a program that creates the jrxml dinamically being careful to the report content format.I often asked questions concerning the parameters passing to the report to make dinamic colour, or dinamic dimension... etc...but I never got answers... :( Link to comment Share on other sites More sharing options...
sugita Posted May 24, 2010 Author Share Posted May 24, 2010 The problem we are facing is the Merged Cell when we do Stretch with Overflow and if we don't do stretch with Overflow the data gets truncated.So finally we are looking for a feature to be used in Excel Report which allows the data exported in Excel to be sorted and not truncated.I tried increasing the size of the column to get this working but as soon as the larger data value gets it, ut gets truncated. Please let me know how to resolve this. Link to comment Share on other sites More sharing options...
slow Posted May 24, 2010 Share Posted May 24, 2010 have you tried to use the keep.full.text properties?in the properties of text field search property expression, open the dialog and add:property name: net.sf.jasperreports.print.keep.full.textproperty value: truetry this and send me a feedback... Post Edited by slow at 05/24/2010 07:24 Link to comment Share on other sites More sharing options...
sugita Posted May 25, 2010 Author Share Posted May 25, 2010 Thanks for your response. This feature does the same function as "Stretch with Overflow" Property of the field. The moment data exceeds more than the column height, it becomes a Merged Cell and throws error while using sort feature of the Excel. Link to comment Share on other sites More sharing options...
slow Posted May 25, 2010 Share Posted May 25, 2010 Stretch with Overflow Property and net.sf.jasperreports.print.keep.full.textare different function... read here:http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=35245 Link to comment Share on other sites More sharing options...
sugita Posted May 26, 2010 Author Share Posted May 26, 2010 Thanks for the clarification. But this didn't solve my problem as it becomes a Merged Cell and throws error while using sort feature of the Excel. Link to comment Share on other sites More sharing options...
slow Posted May 26, 2010 Share Posted May 26, 2010 how long are your strings?I use this properties without problems... are you sure the columns and cells are perfectly aligned to create working excel cells? Link to comment Share on other sites More sharing options...
sugita Posted July 6, 2010 Author Share Posted July 6, 2010 The column size depends on the data coming in database. There are few columns, the size of whose exceeds 255 bytes. How to handle these scenarios. 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