[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== Barcode Revisited (AREV Specific) ==== === At 17 NOV 2003 12:26:09PM C Mansutti wrote: === {{tag>"AREV Specific"}} I've searched for barcodes in the forum, there are old postings for Code 39 Barcodes for HP LaserJet printers, but most of the links are no longer valid. Is anybody able to provide me with info/code for generating barcodes on HPs TIA Claude ---- === At 17 NOV 2003 12:26PM C Mansutti wrote: === Correct me if I´m wrong, but aren´t barcode fonts designed for Windows drivers which Arev can´t take advantage of Claude ---- === At 17 NOV 2003 12:26PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote: === You can get PCL ones. (We just did a big project with this on the West Coast). [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] [i]World Leaders in all things RevSoft[/i] [img]http://www.sprezzatura.com/zz.gif[/img] ---- === At 17 NOV 2003 12:26PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote: === We find that buying a barcode font and using a "keyboard buffer" scanner eliminates hours of programming. [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] [i]World Leaders in all things RevSoft[/i] [img]http://www.sprezzatura.com/zz.gif[/img] ---- === At 17 NOV 2003 12:26PM Richard Hunt wrote: === Here is the cheap way. First off you need to know the 3of9 coding. Second, is that there are three different stripes in a barcode (thin fat and blank). Third, is that an HP printer will print thin fat and blank easily by using the characters char(179) char(221) and char(32). Fourth is how to adjust the horizontal and vertical sizing. The string of the 42 possible characters are as follows... $%.-/+0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ Given that string you now need to know the "thin fat blank" coding for each character. $=THIN:BLANK:THIN:BLANK:THIN:BLANK:THIN:THIN %=THIN:THIN:BLANK:THIN:BLANK:THIN:BLANK:THIN .=FAT:BLANK:THIN:THIN:FAT:THIN -=THIN:BLANK:THIN:THIN:FAT:FAT /=THIN:BLANK:THIN:BLANK:THIN:THIN:BLANK:THIN +=THIN:BLANK:THIN:THIN:BLANK:THIN:BLANK:THIN 0=THIN:THIN:BLANK:FAT:FAT:THIN 1=FAT:THIN:BLANK:THIN:THIN:FAT 2=THIN:FAT:BLANK:THIN:THIN:FAT 3=FAT:FAT:BLANK:THIN:THIN:THIN 4=THIN:THIN:BLANK:FAT:THIN:FAT 5=FAT:THIN:BLANK:FAT:THIN:THIN 6=THIN:FAT:BLANK:FAT:THIN:THIN 7=THIN:THIN:BLANK:THIN:FAT:FAT 8=FAT:THIN:BLANK:THIN:FAT:THIN 9=THIN:FAT:BLANK:THIN:FAT:THIN A=FAT:THIN:THIN:BLANK:THIN:FAT B=THIN:FAT:THIN:BLANK:THIN:FAT C=FAT:FAT:THIN:BLANK:THIN:THIN D=THIN:THIN:FAT:BLANK:THIN:FAT E=FAT:THIN:FAT:BLANK:THIN:THIN F=THIN:FAT:FAT:BLANK:THIN:THIN G=THIN:THIN:THIN:BLANK:FAT:FAT H=FAT:THIN:THIN:BLANK:FAT:THIN I=THIN:FAT:THIN:BLANK:FAT:THIN J=THIN:THIN:FAT:BLANK:FAT:THIN K=FAT:THIN:THIN:THIN:BLANK:FAT L=THIN:FAT:THIN:THIN:BLANK:FAT M=FAT:FAT:THIN:THIN:BLANK:THIN N=THIN:THIN:FAT:THIN:BLANK:FAT O=FAT:THIN:FAT:THIN:BLANK:THIN P=THIN:FAT:FAT:THIN:BLANK:THIN Q=THIN:THIN:THIN:FAT:BLANK:FAT R=FAT:THIN:THIN:FAT:BLANK:THIN S=THIN:FAT:THIN:FAT:BLANK:THIN T=THIN:THIN:FAT:FAT:BLANK:THIN U=FAT:BLANK:THIN:THIN:THIN:FAT V=THIN:BLANK:FAT:THIN:THIN:FAT W=FAT:BLANK:FAT:THIN:THIN:THIN X=THIN:BLANK:THIN:FAT:THIN:FAT Y=FAT:BLANK:THIN:FAT:THIN:THIN Z=THIN:BLANK:FAT:FAT:THIN:THIN START=THIN:BLANK:THIN:FAT:FAT:THIN FINISH=THIN:BLANK:THIN:FAT:FAT:THIN So you will now convert the characters to the barcode thin, fat, and blank codes. Also you must add a start to the beginning and a finish to the end. And you might want to set vertical line spacing. Here is the code for this... CHAR(27):'&l#d' change the "#" to the number of lines per inch. And you might want to set the horizontal character pitch. Here is the code for it... CHAR(27):'(s#H' change the "#" to the characters per inch you want. So the printer control codes will go kinda like this... PREFIX=CHAR(27):'&l24d':CHAR(27):'(s24H' SUFFIX=CHAR(27):'&l6d':CHAR(27):'(s10H' And the actual bar code for "123" would go like this... BARCODE=START:1:2:3:FINISH or BARCODE=THIN:BLANK:THIN:FAT:FAT:THIN BARCODE := FAT:THIN:BLANK:THIN:THIN:FAT BARCODE := THIN:FAT:BLANK:THIN:THIN:FAT BARCODE := FAT:FAT:BLANK:THIN:THIN:THIN BARCODE := THIN:BLANK:THIN:FAT:FAT:THIN Now combining the print string to be sent to the printer... PRINT_LINE=PREFIX:BARCODE:SUFFIX And "POOF"... an easy, cheap way of printing barcode 3of9 to an HP laserjet printer. ---- === At 17 NOV 2003 12:26PM C Mansutti wrote: === can you name the product? ---- === At 17 NOV 2003 12:26PM [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote: === The product details are on site sorry. I recall we found it via web searches. [url=http://www.sprezzatura.com" onMouseOver=window.status= Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] [i]World Leaders in all things RevSoft[/i] [img]http://www.sprezzatura.com/zz.gif[/img] ---- === At 17 NOV 2003 12:26PM Jonathan Bird wrote: === Drop me an email, I have some barcode software for Arev. jb@psi.net.nz ---- === At 09 DEC 2003 10:58PM Ted Archibald wrote: === I send ascii PCL commands directly to the laser printer. PCL=Printer Control Langauage Manuals exist that describe all commands. You just have to search the web for them. I have used the HP LaserJet 4L Printer User's Manual. examples Escape %-12345X is the Univeral exit Escape E is Reset Escape &l1O is Landscape orientation Escape &k0S is 10 characters/inch and on and on and on Ted [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=11CD4C7BC1716A7185256DE1005FC737|View this thread on the forum...]]