Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Font Size - xx- Small
Migrateduser
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
There are no comments yet