Re: [U2] Barcode PCL Commands
ted at figler.com writes: This will print Code 39 / Code 128 with a PCL printer in GL/2 mode. I can supply the files if you need them. Also forces the required quiet zones flanking the bar code. HPBARS39 001 SUBROUTINE HPBARS39(X,Y,HEIGHT,STRING,WIDTH,RATIO) 002 OPEN BARS39 TO BARS39 ELSE RETURN Could I possible get a copy of your bar code files, in perticular the BARS39. We were printing bar codes fine on an oki printer but switched to the hp 4250 laser jet to create our forms. I bought a bar code chip for the printer but my unidata programmer is having trouble converting the code from the oki to the laserjet using 3and9 coding. I would really appreciate help. Robert ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Barcode PCL Commands
I don't sell PrintWizard but I highly recommend it for tasks like this. See a BASIC demo I wrote with full source: http://Nebula-RnD.com/products/PW/demo2.htm If you know anything about HTML you can use PrintWizard - and that includes doing barcodes. For an example of Code 128 done the hard way, but free, see this: http://www.pickwiki.com/cgi-bin/wiki.pl?BarCode128 Note that if you need a different format you're going to need a lot more code. With PrintWizard, here's your barcode: barcode pointsize=20 src=1234567890 style=2of5 addcheckchar=off Done. HTH T From: Robert Frailey This will print Code 39 / Code 128 with a PCL printer in GL/2 mode. I can supply the files if you need them. Also forces the required quiet zones flanking the bar code. HPBARS39 001 SUBROUTINE HPBARS39(X,Y,HEIGHT,STRING,WIDTH,RATIO) 002 OPEN BARS39 TO BARS39 ELSE RETURN Could I possible get a copy of your bar code files, in perticular the BARS39. We were printing bar codes fine on an oki printer but switched to the hp 4250 laser jet to create our forms. I bought a bar code chip for the printer but my unidata programmer is having trouble converting the code from the oki to the laserjet using 3and9 coding. I would really appreciate help. Robert ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Barcode PCL Commands
thank you, ill look at it - Original Message - From: Tony Gravagno 3xk547...@sneakemail.com To: u2-users@listserver.u2ug.org Sent: Friday, September 21, 2012 5:16 PM Subject: Re: [U2] Barcode PCL Commands I don't sell PrintWizard but I highly recommend it for tasks like this. See a BASIC demo I wrote with full source: http://Nebula-RnD.com/products/PW/demo2.htm If you know anything about HTML you can use PrintWizard - and that includes doing barcodes. For an example of Code 128 done the hard way, but free, see this: http://www.pickwiki.com/cgi-bin/wiki.pl?BarCode128 Note that if you need a different format you're going to need a lot more code. With PrintWizard, here's your barcode: barcode pointsize=20 src=1234567890 style=2of5 addcheckchar=off Done. HTH T From: Robert Frailey This will print Code 39 / Code 128 with a PCL printer in GL/2 mode. I can supply the files if you need them. Also forces the required quiet zones flanking the bar code. HPBARS39 001 SUBROUTINE HPBARS39(X,Y,HEIGHT,STRING,WIDTH,RATIO) 002 OPEN BARS39 TO BARS39 ELSE RETURN Could I possible get a copy of your bar code files, in perticular the BARS39. We were printing bar codes fine on an oki printer but switched to the hp 4250 laser jet to create our forms. I bought a bar code chip for the printer but my unidata programmer is having trouble converting the code from the oki to the laserjet using 3and9 coding. I would really appreciate help. Robert ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Barcode PCL Commands
REPOSTED FOR NON-MEMBER E-MAIL ADDRESS: Don Kibbey [EMAIL PROTECTED] I've also used www.elfring.com for barcodes, micr and logo fonts. Just sent off some signatures to be made into fonts today. -- - Charles Barouch, Moderator U2-Users U2-Community RBSolutions SBSolutions Visit http://listserver.u2ug.org, enter your e-mail address, and 'browse all' lists to maintain your access. For non-U2UG e-mail: [EMAIL PROTECTED] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Barcode PCL Commands
REPOSTED FOR NON-MEMBER E-MAIL ADDRESS: Scott Schuler [EMAIL PROTECTED] I tried this and it works great with one exception. The data now creeps up the page so by the bottom of the page I've lost about a line. Anyone know how I can have the barcode match the linefeed height. Thanks While normally one needs a special font cartridge for this, I posted an article (with code) on u2ug.org two years ago that allows you to create 3-of-9 barcodes using PCL line-draw commands. Here's a link: http://www.u2ug.org/index.php?name=Newsfile=articlesid=9 Scott Schuler Cell - 612-205-9465 Home - 763-633-3113 Work - 651-766-6464 -- - Charles Barouch, Moderator U2-Users U2-Community RBSolutions SBSolutions Visit http://listserver.u2ug.org, enter your e-mail address, and 'browse all' lists to maintain your access. For non-U2UG e-mail: [EMAIL PROTECTED] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands (link to code)
George Can I ask you to write this up as a short article for the U2UG knowledge base. It's the kind of useful information we're looking for :) In case you haven't visited, you can find it at: www.mvopen.org/kb There's also a link from the U2UG website. Thanks, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: 28 June 2006 18:51 To: u2-users@listserver.u2ug.org Subject: RE: [U2] Barcode PCL Commands (link to code) I thought this was in the U2 file section, but it's not. Here is a link to get it. http://www.carcarealert.com/CODE128.TXT George -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik Sent: Wednesday, June 28, 2006 1:31 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Barcode PCL Commands if you need Code-128, There should be a subroutine where U2 files are stored. It works very niceley. By Dave Church. If you need this, I can forward it to you. It will return the I don't know about the original poster, but I'd like to see that. Barry Brevik --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands (link to code)
I suppose I could. However, it's not my code. Does anyone know if David Church is still on the list? and if lurking, do you have a problem with it? George -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian Leach Sent: Thursday, June 29, 2006 3:46 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Barcode PCL Commands (link to code) George Can I ask you to write this up as a short article for the U2UG knowledge base. It's the kind of useful information we're looking for :) In case you haven't visited, you can find it at: www.mvopen.org/kb There's also a link from the U2UG website. Thanks, Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: 28 June 2006 18:51 To: u2-users@listserver.u2ug.org Subject: RE: [U2] Barcode PCL Commands (link to code) I thought this was in the U2 file section, but it's not. Here is a link to get it. http://www.carcarealert.com/CODE128.TXT George --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands
This information is 10 years old but you can give it a try: STARTBC: \027)s0p8.1h12.0v0s0b0T\027)0Y\014\042 ENDBC: \042\015 SPACEBC: \044 A WIKI page appears to have current links to HPs documents: http://en.wikipedia.org/wiki/Printer_Control_Language You have a barcode font cartridge or memory module loaded in the printer, right? Kent -Original Message- Does anyone have, or can you direct me to, a PCL command reference to print barcodes? I need to print them on an HP laser. --- --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands
Does anyone have, or can you direct me to, a PCL command reference to print barcodes? I need to print them on an HP laser. There is supposed to be a barcode font built into PCL 5 and up, but I could never make it work on our printers. I do have some UV code you can have that will print CODE39 barcodes (only) in about 8 different sizes natively from UV to HP-PCL printers without using soft fonts. It positions the barcodes using row/column addressing WITH the assumption that you are using the 16.66 cpi Lineprinter font. If that meets your need, give me a shout. Barry Brevik --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands
if you need Code-128, There should be a subroutine where U2 files are stored. It works very niceley. By Dave Church. If you need this, I can forward it to you. It will return the PCL coding to produce the barcode for Code-128 (a,b and c subsets). George -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ray Buchner Sent: Wednesday, June 28, 2006 12:04 PM To: u2-users@listserver.u2ug.org Subject: [U2] Barcode PCL Commands Does anyone have, or can you direct me to, a PCL command reference to print barcodes? I need to print them on an HP laser. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands
if you need Code-128, There should be a subroutine where U2 files are stored. It works very niceley. By Dave Church. If you need this, I can forward it to you. It will return the I don't know about the original poster, but I'd like to see that. Barry Brevik --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands (link to code)
I thought this was in the U2 file section, but it's not. Here is a link to get it. http://www.carcarealert.com/CODE128.TXT George -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik Sent: Wednesday, June 28, 2006 1:31 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Barcode PCL Commands if you need Code-128, There should be a subroutine where U2 files are stored. It works very niceley. By Dave Church. If you need this, I can forward it to you. It will return the I don't know about the original poster, but I'd like to see that. Barry Brevik --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands
I definitely used soft fonts since it was totally impossible to purchase special font cartridges for all printers required -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Wednesday, June 28, 2006 1:17 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] Barcode PCL Commands Ray Buchner [EMAIL PROTECTED] wrote on 28 Jun 2006 12:03:42 -0400 Does anyone have, or can you direct me to, a PCL command reference to print barcodes? I need to print them on an HP laser. While normally one needs a special font cartridge for this, I posted an article (with code) on u2ug.org two years ago that allows you to create 3-of-9 barcodes using PCL line-draw commands. Here's a link: http://www.u2ug.org/index.php?name=Newsfile=articlesid=9 You can also go to u2ug.org and search the site for barcode to find it. 3-of-9 barcodes handle only capital letters, digits, the six symbols $%+-/. and a blank. An asterisk is used for the start and end bars. The code got its name because three of the nine bars (five black, four white) are three times as wide as the others. Feel free to contact me directly if you want additional information. --Tom Pellitieri Toledo, Ohio --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands (link to code)
I updated the file just now to include the following code (shown as comments) * * GG: tHE FOLLOWING CODE WAS ADDED TO ALLOW PRINTING OF THE * NEW POSTAL CODE-128 BARCODES. sO THE START CHARACTER * WILL BE PRINTED. * ! IF (CODE.FLD = CODEC) THEN ! POS = 103 ! GOSUB PRINT.BAR ! END * * which goes after this section * print the start code BEGIN CASE CASE VALUE[1,4] MATCHES 4N CODE.FLD = CODEC POS = 106 CASE VALUE[1,1] CHAR(32) ;* control character CODE.FLD = CODEA POS = 104 CASE TRUE CODE.FLD = CODEB POS = 105 END CASE GOSUB PRINT.BAR You will need to uncomment it to function. Normally, Code128 doesn't print the start character but for the new postal code 128, you need the start character after the code c character. George -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of George Gallen Sent: Wednesday, June 28, 2006 1:51 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Barcode PCL Commands (link to code) I thought this was in the U2 file section, but it's not. Here is a link to get it. http://www.carcarealert.com/CODE128.TXT George -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik Sent: Wednesday, June 28, 2006 1:31 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] Barcode PCL Commands if you need Code-128, There should be a subroutine where U2 files are stored. It works very niceley. By Dave Church. If you need this, I can forward it to you. It will return the I don't know about the original poster, but I'd like to see that. Barry Brevik --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Barcode PCL Commands
I would get a plug-in module (hardware) from HP. --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ray Buchner Sent: Wednesday, June 28, 2006 12:04 PM To: u2-users@listserver.u2ug.org Subject: [U2] Barcode PCL Commands Does anyone have, or can you direct me to, a PCL command reference to print barcodes? I need to print them on an HP laser. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Barcode PCL Commands
This will print Code 39 / Code 128 with a PCL printer in GL/2 mode. I can supply the files if you need them. Also forces the required quiet zones flanking the bar code. HPBARS39 001 SUBROUTINE HPBARS39(X,Y,HEIGHT,STRING,WIDTH,RATIO) 002 OPEN BARS39 TO BARS39 ELSE RETURN 003 PRINT TR0; 004 IF X# AND Y# THEN PRINT PA:X:,:Y:; 005 PRINT FT10,0,0; 006 PRINT RR:WIDTH*20:,:HEIGHT:; 007 PRINT PR:WIDTH*20:,0; 008 LEN.STR=LEN(STRING) 009 FOR I=1 TO LEN.STR 010 READ CODE FROM BARS39,STRING[I,1] THEN 011 FOR J=1 TO 9 012 BAR=CODEJ 013 IF BAR=NB OR BAR=WB THEN 014 PRINT FT1,0,0;: 015 END ELSE 016 PRINT FT10,0,0;: 017 END 018 IF BAR=NB OR BAR=NS THEN 019 PRINT RR:WIDTH:,:HEIGHT:;: 020 PRINT PR:WIDTH:,0;: 021 END ELSE 022 PRINT RR:WIDTH*RATIO:,:HEIGHT:; 023 PRINT PR:WIDTH*RATIO:,0; 024 END 025 NEXT J 026 PRINT FT10,0,0;: 027 PRINT RR:WIDTH:,:HEIGHT:;: 028 PRINT PR:WIDTH:,0;: 029 END 030 NEXT I 031 PRINT FT10,0,0;: 032 PRINT RR:WIDTH*20:,:HEIGHT:;: 033 PRINT PR:WIDTH*20:,0;: 034 PRINT TR1;: 035 RETURN 036 E N D *** HPBARS128 001 SUBROUTINE HPBARS128(X,Y,HEIGHT,STRING,WIDTH,TYPE) 002 EQU AM TO CHAR(254), VM TO CHAR(253) 003 OPEN BARS128 TO BARS128 ELSE STOP 004 MOD=0 ; JUMP=1 ; START=1 005 WEIGHTING=1 ; TOT.WEIGHT=0 006 PRINT TR0; 007 IF X# AND Y# THEN PRINT PA:X:,:Y:; 008 PRINT FT10,0,0; 009 PRINT RR:WIDTH*20:,:HEIGHT:; 010 PRINT PR:WIDTH*20:,0; 011 CNT=LEN(STRING) 012 FOR I=1 TO CNT 013 CTYPE=TYPE[I,1] 014 IF CTYPE=C AND START THEN CODEWORD=105 015 IF CTYPE=B AND START THEN CODEWORD=104 ; JUMP=1 016 IF CTYPE=C AND NOT(START) THEN CODEWORD=99 017 IF CTYPE=B AND NOT(START) THEN CODEWORD=100 ; JUMP=1 018 IF CTYPE=X THEN CODEWORD=STRING[I,JUMP] 019 READ RATIO FROM BARS128,CODEWORD ELSE RATIO= 020 TOT.WEIGHT=TOT.WEIGHT+(RATIO8*WEIGHTING) 021 IF I1 THEN WEIGHTING=WEIGHTING+1 022 FOR J=1 TO 6 023 IF J=1 OR J=3 OR J=5 THEN 024 PRINT FT1,0,0; 025 END ELSE 026 PRINT FT10,0,0; 027 END 028 PRINT RR:WIDTH*RATIOJ:,:HEIGHT:; 029 PRINT PR:WIDTH*RATIOJ:,0; 030 NEXT J 031 I=I+JUMP-1 032 IF CTYPE=C THEN JUMP=2 033 START=0 034 NEXT I 035 CHECK=MOD(TOT.WEIGHT,103) 036 IF CHECK100 THEN CHECK=CHECKR%2 037 READ RATIO FROM BARS128,CHECK ELSE RATIO= 038 FOR I=1 TO 6 039 IF I=1 OR I=3 OR I=5 THEN 040 PRINT FT1,0,0; 041 END ELSE 042 PRINT FT10,0,0; 043 END 044 PRINT RR:WIDTH*RATIOI:,:HEIGHT:; 045 PRINT PR:WIDTH*RATIOI:,0; 046 NEXT I 047 READ RATIO FROM BARS128,STOP ELSE RATIO= 048 FOR I=1 TO 7 049 IF I=2 OR I=4 OR I=6 THEN 050 PRINT FT10,0,0; 051 END ELSE 052 PRINT FT1,0,0; 053 END 054 PRINT RR:WIDTH*RATIOI:,:HEIGHT:; 055 PRINT PR:WIDTH*RATIOI:,0; 056 NEXT I 057 PRINT FT10,0,0; 058 PRINT RR:WIDTH*20:,:HEIGHT:; 059 PRINT PR:WIDTH*20:,0; 060 PRINT TR1; 061 RETURN 062 E N D *** - Original Message - From: Ray Buchner [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Subject: [U2] Barcode PCL Commands Date: Wed, 28 Jun 2006 12:03:42 -0400 Does anyone have, or can you direct me to, a PCL command reference to print barcodes? I need to print them on an HP laser. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/