Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Data is getting truncated in the PDF out put(Data is getting truncated in the PDF out put)
Data is getting truncated in the PDF out put [message #684227] Wed, 15 June 2011 05:04 Go to next message
laxmipathi raju is currently offline laxmipathi raju
Messages: 17
Registered: April 2010
Junior Member
Hi,
In rptdesign file i have created a table in a layout(Auto layout is selected).While generating the same report in PDF format i couldn't able to view the full data which is coming from database.The data is getting truncated. Is there any way to set auto wrapping functionality to table columns. Can you please let me know how to avoid this problem.


Thanks & Regards,
Laxmipathi Raju
Re: Data is getting truncated in the PDF out put [message #684413 is a reply to message #684227] Wed, 15 June 2011 10:39 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Wrap should be default. Take a look at the attached example. Both
grids in this example use a fixed grid column width. The second label
has no wrapping in the style.

Jason

<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.22"
id="1">
<property name="createdBy">Eclipse BIRT Designer Version
2.6.1.v20100902 Build &lt;2.6.1.v20100915-1750></property>
<property name="units">in</property>
<property name="iconFile">/templates/blank_report.gif</property>
<property name="layoutPreference">auto layout</property>
<property name="bidiLayoutOrientation">ltr</property>
<property name="imageDPI">96</property>
<styles>
<style name="report" id="4">
<property name="fontFamily">sans-serif</property>
<property name="fontSize">10pt</property>
</style>
<style name="crosstab-cell" id="5">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="crosstab" id="6">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="nowrap" id="41">
<property name="whiteSpace">nowrap</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property
name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<grid id="8">
<column id="9">
<property name="width">1in</property>
</column>
<column id="10"/>
<column id="11"/>
<row id="12">
<cell id="13"/>
<cell id="14"/>
<cell id="15"/>
</row>
<row id="16">
<cell id="17">
<label id="7">
<text-property name="text">this is a very long
string that I want to wrap</text-property>
</label>
</cell>
<cell id="18"/>
<cell id="19"/>
</row>
<row id="20">
<cell id="21"/>
<cell id="22"/>
<cell id="23"/>
</row>
</grid>
<grid id="24">
<column id="25">
<property name="width">1in</property>
</column>
<column id="26"/>
<column id="27"/>
<row id="28">
<cell id="29"/>
<cell id="30"/>
<cell id="31"/>
</row>
<row id="32">
<cell id="33">
<label id="34">
<property name="style">nowrap</property>
<text-property name="text">this is a very long
string that I want to wrap</text-property>
</label>
</cell>
<cell id="35"/>
<cell id="36"/>
</row>
<row id="37">
<cell id="38"/>
<cell id="39"/>
<cell id="40"/>
</row>
</grid>
</body>
</report>


On 6/15/2011 5:04 AM, laxmipathi raju wrote:
> Hi,
> In rptdesign file i have created a table in a layout(Auto layout is
> selected).While generating the same report in PDF format i couldn't able
> to view the full data which is coming from database.The data is getting
> truncated. Is there any way to set auto wrapping functionality to table
> columns. Can you please let me know how to avoid this problem.
>
>
> Thanks & Regards,
> Laxmipathi Raju
Previous Topic:custom chart : multiple Y values for same X value
Next Topic:Runtime vs ReportDesigner
Goto Forum:
  


Current Time: Fri Jul 25 16:00:25 EDT 2014

Powered by FUDForum. Page generated in 0.02967 seconds