Home
Analytics
Fix the dimensions of table's cells and allow overflow
Still
<p>Hello,</p>
<p> </p>
<p>I'll briefly introduce you my problem.</p>
<p> </p>
<p><strong>Environment </strong>: Birt 3.7.1</p>
<p> </p>
<div><strong>Issues </strong>:<span> </span></div>
<ul><li>Fixing the dimensions (width and/or height) of table's cells</li>
<li>Allowing overflow [so the text inside the fixed cells is never cut off. So the text can be fully displayed, at the expense of others cells next to it]</li>
</ul><div>I am facing the problems above. </div>
<div>I am unable to find a way to fix the dimensions of cells in a table. When a text is too large to be contained in the cell, the cell enlarge.</div>
<div> </div>
<div>Once the first problem has been solved, a too long text will be cut off by the cell. I want to display all the text no matter if the cell is wide enough or not.</div>
<div> </div>
<div>So far, I managed to fix the width (but not the height) in a crosstab but not in a table. I couldn't find any way to allow the overflow in a cell or whatever.</div>
<div> </div>
<div>I am going to do a sample new report to support my problems and I'll upload it here soon.</div>
<div> </div>
<div> </div>
<div>If you have any idea of how I can deal with my issues it would be highly appreciated; a workaround or an explanation.</div>
<div> </div>
<div>Thanks you in advance for your help.</div>
Find more posts tagged with
Comments
JFreeman
<p>Take a look at the attached example. I have set a fixed width on the comments column in the table of 1 inch and have left the height on the row to be dynamic. With this setup the comments text will grow vertically to display all the text and will not expand horizontally.</p>
Still
<p>Thank you for reply and the rptdesign. It's helpful.</p>
<p>I have another problem now. I don't understand how I can fix the height of a row (detail for example).</p>
<p>I tried with both my rptdesign and yours but it seems like it doesn't do anything.</p>
<p> </p>
<p>I don't mind if the text is cropped.</p>
<p> </p>
<p>Once again, thanks you for your help.</p>
JFreeman
<p>I've modified my previous example to set a fixed height of .5 inches on the detail row of the table. This is successfully applied in the report output from my testing.</p>
<p> </p>
<p>You will see the text for "Comments" is now cutoff if it goes beyond the .5 inch limit and all rows are .5 inches height regardless of contents.</p>