Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Dynamic text issue(Report not working with nested span tags with display:block in i)
Dynamic text issue [message #1264625] Wed, 05 March 2014 11:10 Go to next message
Sachin Rajmane is currently offline Sachin RajmaneFriend
Messages: 14
Registered: May 2013
Junior Member
Hi All,

In one of my report we are using dynamic text to show text in report.

In my database data is stored in below format,

<span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0"><span style="position: relative; line-height: 13px; display: block;"><span class="fc1372880323093-0">Test Data</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span>

I am generating report in PDF format.

When i generate report, i am getting null pointer exception with below trace,

Please find attached error trace for the same,

, But when I replace display:block with null in onRender event of dynamic text, it is working fine.

Please let me know, if there is any exact solution to it, and if there are some other tags which when exist alone, or in nested format can cause this type of exception.

Re: Dynamic text issue [message #1264751 is a reply to message #1264625] Wed, 05 March 2014 13:23 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Moving this to the BIRT forum.
Re: Dynamic text issue [message #1270184 is a reply to message #1264625] Wed, 12 March 2014 16:26 Go to previous message
Rob Murphy is currently offline Rob MurphyFriend
Messages: 11
Registered: July 2009
Junior Member
Use a Text item and set the formatting to HTML. In the contents of the text item I used the following and it works fine for me.

<VALUE-OF format="HTML">row["htmldata"]</VALUE-OF>

row["htmldata"] contains the data exactly as it is in your post. See attached rptdesign I created using BIRT Designer Pro from Actuate so I could use a static data set to contains the HTML data from your post.
Previous Topic:Unable to use csv-emitter-birt-plugin
Next Topic:Rich text format
Goto Forum:
  


Current Time: Thu Apr 18 00:42:17 GMT 2024

Powered by FUDForum. Page generated in 0.01918 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top