Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Font Size - xx- Small
plavanya
Hi Folks
Can anyone please try to help me in resolving the following issue
Birt Version - 3.7.2
I need to display data from database table of 10 - 12 columns in a Birt Table. The font size is set to xx-small for all the data elements(text,data,dynamic text etc) as the data has to be displayed in one page.
To render the content as html I have taken one control as Text element and have set the content type to HTML. In the onRender method of the text element concatenated a column value as superscript. When I run the report and view it in the Report Viewer I have no issues and the content is displayed as expected(text concatenated with another column value as superscript). But when i export the report to PPT, extra spaces are added to the text. Please find the screen shots and sample ppt attachment.
For Example - I have taken customer name and customerno fields and concatenating customernumber as superscript to customer name.
OnRender Method
if(row["CUSTOMERNAME"] != null && row["CUSTOMERNAME"] != "")
{
var custName = row["CUSTOMERNAME"]
if(row["CUSTOMERNUMBER"] != null && row["CUSTOMERNUMBER"] != "")
{
var custNo = row["CUSTOMERNUMBER"];
this.text = custName + "<sup>" + custNo + "</sup>";
}
else
{
this.text = row["CUSTOMERNAME"];
}
}
As I have some logic for page numbers and table of contents in my original report need to render it and then export it as powerpoint.
Please find the screen shot for the sample report in Report Viewer
Find more posts tagged with
Comments
kclark
If you change the font to 6 points and not xx small it works fine.
The extra space you are getting is how the emitter is creating the ppt, you can log the bug in bugzilla at eclipse.org/birt you could also try the Tribix PPT emitter, you may need to modify it to work with 3.7 and newer though.
plavanya
Thank you Kclark. Changing size 6/7 pts resolved my issue. Once again Thank you very much.
Thanks & Regards
Lavanya