Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Word Wrap in Report Designer
caramel
<p>Hi all,</p>
<p> </p>
<p>I am using Report Designer Tool and i have i problem with a column but it is large. In Report Designer in HTML Format i get right result. Like:</p>
<p> </p>
<p><strong>FirstName LastName </strong></p>
<p> </p>
<p>If i have large LastName i get in also right result in HTML but not in PDF. I get in PDF this result:</p>
<p> </p>
<p><strong>FirstName </strong></p>
<p> </p>
<p><span><span>because</span> LastName <span>is large</span><span>,</span> <span>it</span> <span>disappears</span> <span>in</span> <span>PDF</span></span>.</p>
<p> </p>
<p>How can i resolve this problem?</p>
<p> </p>
<p>Thank you for your support</p>
<p> </p>
<p>KR</p>
<p> </p>
Find more posts tagged with
Comments
caramel
<p>Hi all,</p>
<p> </p>
<p>i have a question regarding word break in Report Designer.</p>
<p> </p>
<p>i have 2 Label in a line and display option: inline</p>
<p> </p>
<p>in PDF Report i will seperate this labels when a label has to many character. Like this</p>
<p> </p>
<p>Label 1: testttttttt1</p>
<p>Label 2: testttttttt2</p>
<p> </p>
<p>Output should be:</p>
<p> </p>
<p>testttttttt1</p>
<p>testttttttt2</p>
<p> </p>
<p>not like this:</p>
<p> </p>
<p>testttttttt1testtt</p>
<p>tttt2</p>
<p> </p>
<p>Thank you for your support</p>
<p>King regards</p>
<p> </p>
<p> </p>
Matthew L.
<p>You can add the following line of code to the second label's onRender method to create a line break between the 2 labels for PDF output (See attached example)</p>
<p> </p>
<p>Place the following code in the second label's onRender method:</p>
<p><span style="color:#800080;">if</span>( reportContext.getOutputFormat() == <span style="color:#0000ff;">"pdf"</span> ){<span> </span><span style="color:#800080;">this</span>.text = <span style="color:#0000ff;">"\n"</span> + <span style="color:#800080;">this</span>.text; }</p>