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

pen nested elements in iReport 2.0.4


bartvh

Recommended Posts

The 2.0.4 release of iReport claims to support jasperreports engine 2.0.4. However, I get the impression iReport just ignores nested pen elements in a .jrxml file. It also generates deprecated pen attributes.

 

And, yes, I have compatibility set to either 'Latest Available Version'.

Link to comment
Share on other sites

  • Replies 12
  • Created
  • Last Reply

Top Posters In This Topic

I second that.

 

From JasperReport 2.04 changelog

 

"- support for Dotted and Double line style added; "

 

I see dotted but not double lines in iReport 2.0.4

 

"- warning messages added to signal the use of deprecated pen and box attributes and tags in JRXML; all samples refactored; "

 

This issue

 

 

"- minor bug fixes and improvements;"

 

Care to give a list?

 

 

Olivier

Link to comment
Share on other sites

  • 1 month later...

iReport 2.0.4 does not support the new pen implementation in JR.

We decide to postone the visual support of this feature to the new version iReport based on the NetBeans rich client platform.

 

In terms of when this feature will be supported, I think it will be in a month from now (when the new version of iReport NB will be released).

 

Giulio

Link to comment
Share on other sites

I think that there is a misunderstanding: my problem is that since I updated to 2.0.4 (iReport and jasper reports lib), my reports are processed without padding in textfields.

 

I modified the .jrxml to follow the new API (the pen thing) but it doesn't help me with padding :'(

 

Example:

 

Code:

<box leftPadding="10">
<leftPen ... />
</box>

 

Thanks in advance,

francois

Link to comment
Share on other sites

Hi,

 

I'm confused because when I compile the report using "standard" iReport, it's fine.

 

Indeed, we have developed a plugin and my padding issues seems to be a side effect.

 

As far from now this is the only strangeness that has shown up, it's quite hard to determine if the problem is related to our plugin or to the update towards jasper reports 2.0.4 we have made at the same time.

 

In a couple of days I'll post our conclusions.

 

Thanks again for your time.

 

--

francois

Link to comment
Share on other sites

Hi again,

 

I have a jrxml file, opened in iReport 2.0.4. I can see the padding and the old syntax for boxes.

 

When I run it through iReport, a loader is called. This loader is part of jasper report 2.0.4 API. It produces a new jrxml file, compliant with the new grammar (<pen> instead of "border" attributes). But the padding information seems to be lost.

 

Hereunder you will find the two jrxml codes.

 

iReport generated file:

Code:
<box 
topBorder="None"
topBorderColor="#000000"
leftBorder="Thin"
leftBorderColor="#000000"
leftPadding="9"
rightBorder="None"
rightBorderColor="#000000"
bottomBorder="None"
bottomBorderColor="#000000"/>

 

You can see the leftPadding attribute.

 

 

jasper report loader generated file:

 

Code:
[code]<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>

 

No more padding attribute :pinch:

Post edited by: fbaronnet, at: 2008/02/28 10:49

Link to comment
Share on other sites

  • 2 weeks later...

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...