Jump to content
We've recently updated our Privacy Statement, available here ×

topPen inside of <box>


kcronin

Recommended Posts

I should probably add this thread since I have been just going in and deleting these, but I am sure there is some purpose to them.

This is the error:
Invalid element 'topPen' in content of 'box', expected closing tag.

Here is the chunk in question which has been auto-generated by iReport:
<box>     <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
     <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
     <bottomPen lineWidth="0.0" lineColor="#000000"/>
     <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>


I guess I am curious why this would throw an error.  If I have to fix this manually until there is a fix for this, I am more than willing to do that, but I do find it odd that I am one of the slim few that runs into this error.

I guess I am also curious as to why this chunk is auto-generated by iReport if it just throws an error?

I have tried putting a space in between where it has the line color and the closing tag, but that does not work.  I have also tried splitting up the tag by doing this:
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"></topPen>

That seems to have no effect either.

EDIT: What is topPen even used for?  Everytime I make a report, I could do nothing, and have a bunch of these in there.  I also double checked my version of jasperreports and I am using 3.0.1



Post Edited by kcronin at 10/29/2010 20:50



Post Edited by kcronin at 10/29/2010 21:15
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I ended up figuring this out and I might as well post what happened for future reference.

This happened because my version of iReport was using a higher version of the jasperreports jar file than my java code was.

Updating that jar fixed that problem.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...