See http://www.barcodeisland.com/code128.phtml and use the CODE128_RAW if you really need those sequences precisely. Alternatively just use CODE128_UCC like:
String code = "(91)00000000201707000016(92)01000000000504595(93)20041111"; Note that if you are using a scanner connected to the keyboard you'll get wrong characters if the keyboard mapping doesn't match waht the scanner expects. Best Regards, Paulo Soares ----- Original Message ----- From: "Faber Ruiz" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 07, 2004 21:23 Subject: Re: [iText-questions] how can i use Barcode128 with START_C and START_B? > hi, thanks > > i use CODE128_UCC, > > i have the next estandar > > INC+FNC1+91AAAAAAAAAAAAAAAAAAAA92AA+INBNNNNNNNNNNNNNNN+INC93AAAAAAAA > > when > INC : code C > INB : code B > A : Numbers and letters > N : only numbers > > i don't know how to build de string for producing the code > > (91)AAAAAAAAAAAAAAAAAAAA(92)AA+INBNNNNNNNNNNNNNNN+INC(93)AAAAAAAA > > i try with > > BarcodeEAN128 ean128 = new BarcodeEAN128(); > ean128.setCodeType(Barcode.CODE128_UCC); > ean128.setBarHeight(30); > ean128.setX(10.35f); > ean128.setSize(6); > ean128.setN(5); > String code = > Barcode128.START_C +Barcode128.FNC1 +"(91)00000000201707000016"+Barcode128.START_B+"(92)01000000000504595"+Barco de128.START_C+"(93)20041111"; > ean128.setCode(code); > Image bars = ean128.createAwtImage(Color.BLACK, Color.WHITE); > saveToJPEG(bars, System.currentTimeMillis() + ".jpg"); > > but this code don't produce the correct code. I know that something is wrong, but i don't know what. > i get of the reader : i202(91=00000000201707000016h(92=01000000000504595i(93=20041111 > > can you help me? > > again, thanks > > > > Paulo Soares wrote: > > >You can use the mode CODE128_RAW and put whatever codes you want. > > > >Best Regards, > >Paulo Soares > > > >----- Original Message ----- > >From: "Faber Ruiz" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Wednesday, October 06, 2004 15:39 > >Subject: [iText-questions] how can i use Barcode128 with START_C and > >START_B? > > > > > > > > > >>Hi, > >> > >>i have this code in BARCODE 128 > >> > >>INC+FNC1+91000000002017070000169201+INB000000000504595+INC9320041111 > >> > >>the code INC and FNC1 i understand them, but i don know how indicate in > >>the Java code the part : > >>INB = START_C > >>INC= START_B > >> > >>this code produce > >> > >>(91)00000000201707000016(92)01000000000504595(93)20041111 or > >>910000000020170700001692010000000005045959320041111 > >> > >>can you help me? > >> > >> > >>beforehand, thnks you > >> > >> > >>------------------------------------------------------- > >>This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > >>Use IT products in your business? Tell us what you think of them. Give us > >>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > >> > >> > >more > > > > > >>http://productguide.itmanagersjournal.com/guidepromo.tmpl > >>_______________________________________________ > >>iText-questions mailing list > >>[EMAIL PROTECTED] > >>https://lists.sourceforge.net/lists/listinfo/itext-questions > >> > >> > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
