From: David D. <dav...@sp...> - 2012-01-17 18:03:52
|
Thx!!!!!! For me works with 4.1.3 also. On 17/01/2012 18.31, David Garratt wrote: > I should note that I am using iReport 4.5 > > If you want to look at my reports etc they are available as part of my > open source project found at www.commander4j.com > <http://www.commander4j.com> > > Dave > > On 17 Jan 2012, at 17:30, David Garratt wrote: > >> Try using \u00F1 >> >> I create virtually identical barcodes and it works for me. >> >> >> On 17 Jan 2012, at 16:53, Davide Poletti wrote: >> >>> Hi, >>> >>> i created a report with iReport 4.1.3 in which I have included a >>> barcode EAN128 using barcode4j 2.0. >>> The code that I want to print is >>> /020807680901146415140501370000005610I12246711 /which contains 4 >>> items Indicod (02) n14 (15) n6 (37) n8 (10) AN9. >>> This is the jrxml code: >>> >>> /<componentElement> >>> <reportElement x="22" y="18" width="200" height="50"/> >>> <jr:EAN128 >>> xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" >>> xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components >>> http://jasperreports.sourceforge.net/xsd/components.xsd" >>> moduleWidth="2.0" textPosition="bottom"> >>> <jr:codeExpression><![CDATA["020807680901146415140501370000005610I12246711"]]></jr:codeExpression> >>> </jr:EAN128> >>> </componentElement> >>> / >>> >>> The problem is that the third item (37) has not a fixed length (max >>> 8) and I should insert the Group separator charter. >>> As a matter of fact when I run the report I recieved error, >>> >>> / java.lang.IllegalArgumentException: Variable length field >>> "0000005610I12246711" too long! >>> Length should be 8 at the most! Accepted start of Message: >>> "(02)08076809011464(15)140501(37)" / >>> >>> I can't figure out how to insert the GS character. I tried both with >>> unicode >>> >>> /0208076809011464151405013700000056\u241D10I12246711/ >>> >>> and html endoding >>> >>> /0208076809011464151405013700000056/␝/10I12246711/ >>> >>> with no success. Can someone help me? >>> >>> Thanks >>> >>> Davide >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Keep Your Developer Skills Current with LearnDevNow! >>> The most comprehensive online learning library for Microsoft developers >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> Metro Style Apps, more. Free future releases when you subscribe now! >>> http://p.sf.net/sfu/learndevnow-d2d_______________________________________________ >>> Barcode4j-users mailing list >>> Bar...@li... >>> <mailto:Bar...@li...> >>> https://lists.sourceforge.net/lists/listinfo/barcode4j-users >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d_______________________________________________ >> Barcode4j-users mailing list >> Bar...@li... >> https://lists.sourceforge.net/lists/listinfo/barcode4j-users > -- David Dario Logistica& Produzione Speed Automazione srl Via Perin del Vaga 16 20156 Milano - Italia Tel. +39 02 38084.459 (Fisso) Mob. +39 348 2338.806 (Mobile) Fax +39 02 38084.499 (Fax) Mail dav...@sp... |