Hi All,
I am working with BIRT(4.6) and Eclipse mars2(4.5).
I am creating a report using EngineConfig object and creating the report in HTML, PDF and EXCEL formats.
The number of the tables and data inside the table I am filling dynamically.
I am creating the CellHandle for each column in my report and adding the LabelHandle inside it. I was setting the width of a LabelHandle based on the size of the String that I am going to set it and All three reports(PDF, HTML and EXCEL) were displaying properly. But setting the LabelHandle width based string size, is not a good practice and sometimes data is missing in the reports.
So Tried with 'canShrink' property on LabelHandle as shown below.
labelHandleObj.setProperty("canShrink", "True");
The above statement automatically adjust LableHandle width based on the String size and this avoids me to set the LableHandle size manually based string size.
With the canShrink property my HTML report is generating properly with no data loss and No extract space/padding in cell. This is the way I want the report.
But when it comes to PDF and EXCEL, Tables are not displaying properly and all columns are shirked and data is not displaying properly. You can see the PDF Report by clicking the below link.
PDF Report after setting the canShrink property on LableHandle
Can any one kindly suggest me, how to get the data properly in PDF and Excel Report. But I want to use the CanShrink property, because it is creating the proper HTML report.I tried with both True and False value for CanShrink but no use with PDF and EXCEL.
Is there any way to get the three reports properly without using CanShrink.
Thanks in Advance.