Home
Analytics
Word wrap in a cell in birt report table
chandu412
<p>Hi,</p><p> </p><p> I have a problem while generating a Birt report which has a huge data with more no of coloumns. The PDF report output doesn't seen correctly. It doesn't displays the whole data of a coloumn it truncates the data.</p><p> </p><p> I want to generate a Birt Report PDF which adjusts automatically the coloumn widths according to the data with in it.</p><p> </p><p> For example In a cell in a table contains the data like' <strong>sssssssssssssssssssssssssss</strong>' I want to display the whole data in a single line without break the data. And I didn't want to fix the coloumn widths.</p><p>I want it adjusts automatically according to the data in it.</p><p> </p><p> Please help me on this Issue.</p><p> </p><p>Here I attached a rpt design with example data.</p><p> </p><p> </p><p>Thanks,</p><p>Chandu.</p><p> </p><p> </p><p> </p>
Find more posts tagged with
Comments
GLO_FR
<p>Hi,</p><p> </p><p>BIRT generate a carriage return in a line when a blank is found. Otherwise, the line will be truncated.</p><p>Either you keep the default behaviour or you need to manage the way the line will be splitted.</p><p> </p><p>I've posted an example for the same kind of request <a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/topic/34609-display-problem-value-of-a-dataset/'>here</a></p>
;
chandu412
<p>Hi,</p><p> </p><p>Thank you for quick response.</p><p>Our requirement is - Can't we adjust width of a cell depending upon the length of the text(Here my text is in <strong>No wrapping</strong> white space) of a cell. Out put should be like,</p><p> </p><p>cell1 cell2 cell3 cell4 cell5</p><p>11111111111111111111111 2 3 4 5</p><p>11111111111111111111111 2 3 4 5</p><p>11111111111111111111111 2 3 4 5</p><p>11111111111111111111111 2 3 4 5</p><p>11111111111111111111111 2 3 4 5</p><p> </p><p>Here we should not mention width of cells. The widths should be set dynamically depending upon the lenght of text.</p><p>Any solution helps us a lot.</p><p> </p><p> </p><p>Thanks,</p><p>Chandu.</p>
GLO_FR
<p>Hi,</p><p> </p><p>I dont understand exactly your needs.</p><p>What kind of dataset do you have</p><p> </p><p>5 rows like this</p><pre class="_prettyXprint">cell1 | cell2 | cell3 | cell4 | cell5
+
+
+
+
11111111111111111111111 | 2 | 3 | 4 | 511111111111111111111111 | 2 | 3 | 4 | 511111111111111111111111 | 2 | 3 | 4 | 511111111111111111111111 | 2 | 3 | 4 | 511111111111111111111111 | 2 | 3 | 4 | 5</pre><p style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">or one row like this</p><pre class="_prettyXprint">cell1 | cell2 | cell3 | cell4 | cell5
+
+
+
+
11111111111111111111111111111111111111111111111111111111111111111111111... | 2 | 3 | 4 | 5</pre>
ravi11
<p>Hi,</p><p> </p><p>Five rows like second one which you have mentioned.</p><p> </p><p><span>cell1 </span><span>|</span><span> cell2 </span><span>|</span><span> cell3 </span><span>|</span><span> cell4 </span><span>|</span><span> cell5</span>
<span>
+
+
+
+
</span>
<span>11111111111111111111111111111111111111111111111111111111111111111111111.</span><span>..</span><span> </span><span>|</span><span> </span><span>2</span><span> </span><span>|</span><span> </span><span>3</span><span> </span><span>|</span><span> </span><span>4</span><span> </span><span>|</span><span> </span><span>5</span></p>
GLO_FR
<p>As I said, with such a long line, the text field will be truncated.</p><p>You need to split it in several smaller line. Ther is nothing OOTB which is doing this</p>