bartvh Posted January 18, 2008 Share Posted January 18, 2008 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 More sharing options...
ohallot Posted January 19, 2008 Share Posted January 19, 2008 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 More sharing options...
fbaronnet Posted February 19, 2008 Share Posted February 19, 2008 Hi, what about padding in textfields ? It seems to me that the *padding attributes in "box" are bootless... --francois Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted February 20, 2008 Share Posted February 20, 2008 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 More sharing options...
fbaronnet Posted February 20, 2008 Share Posted February 20, 2008 Thanks for your quick answer. But there is something left that I don't understand. I tried to modify the .jrxml file directly, according to the latest quick reference 2.0.4.There is no more complain about pen and borders, but I still don't have any padding. This problem is not related to iReport 2.0.4, is it ? Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted February 21, 2008 Share Posted February 21, 2008 iReport just uses a log4j filter to hide deprecation messages. Giulio Link to comment Share on other sites More sharing options...
fbaronnet Posted February 21, 2008 Share Posted February 21, 2008 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 More sharing options...
Giulio Toffoli Posted February 23, 2008 Share Posted February 23, 2008 well, this is the test I did with iR 2.0.4.Everything looks ok. The relevant source code: Code: size=400]http://www.jasperforge.org/components/com_joomlaboard/uploaded/images/left_padding_test.jpgPost edited by: giulio, at: 2008/02/22 17:26 Link to comment Share on other sites More sharing options...
fbaronnet Posted February 26, 2008 Share Posted February 26, 2008 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 More sharing options...
fbaronnet Posted February 28, 2008 Share Posted February 28, 2008 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 More sharing options...
fbaronnet Posted February 28, 2008 Share Posted February 28, 2008 -- double post, sorry -- Post edited by: fbaronnet, at: 2008/02/28 10:48 Link to comment Share on other sites More sharing options...
teodord Posted March 7, 2008 Share Posted March 7, 2008 Hi, Yes, this was a bug in JR. Fixing now.You can get an SVN snapshot with the fix or wait for JR 2.0.5 due to be out in a few days. Thanks,Teodor Link to comment Share on other sites More sharing options...
fbaronnet Posted March 7, 2008 Share Posted March 7, 2008 Hi, thanks a lot, you helped me out of a jam! --François Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now