Home
Analytics
Fixed height of table row
Folky
Hello,
I'd like to set fixed height of table row so when longer text is entered than the cell is able to display, it cuts the text and displays only what can fit in. Is it possible to do this in BIRT? I know only how to set the minimal height of table row.
To be more precise, I have dynamic text sitting inside the table cell. The dynamic text displays the text of various length but I don't want the row height to change its size at any circumstances.
Thank you for any solution, tips and tricks!
Lukas
Find more posts tagged with
Comments
mwilliams
Lukas,<br />
<br />
What output format(s) are you using? For the BIRT viewer and html, if you set the "Layout Preference" of the report to "fixed" and then go to the advanced tab in the property editor of the row. In the "text" section, change the "whitespace" line to "no wrapping", and it should cut off the string for you. For PDF, this property doesn't seem to work correctly. You'll probably have to use the substr() function to cut the text off where you want it for PDF. If you're using PDF, please go to <a class='bbc_url' href='
http://www.eclipse.org/birt/phoenix/reportabug.php'>BIRT
: Reporting Bugs and Requesting Enhancements</a> and submit a bug for this issue.<br />
<br />
I did my testing in BIRT 2.3.1. If you're using a different version and can't get what I said to work, let me know.
Folky
Hey,
thank you for your answer. Unfortunately, I'm using PDF output and as you're saying it seems it's not working in this case. I'll report it as you advised me.
And still, if I were using html output, I'm not sure if I get what I'd like to. I would like the text to be wrapped unless it reaches full size of the cell and yet then the text should be cut off. Is that possible?
mwilliams
Lukas,
I don't think there is any property that you can set to achieve that in any output format. You may want to file a report for an enhancement to BIRT rather than a bug report, detailing the feature you'd like BIRT to have.
For a workaround, your best bet will probably be to use the substr() function and cut the text off where you'd like it to end.