FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Setup Barcode system in FWH
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Setup Barcode system in FWH
Posted: Fri Jun 29, 2018 11:30 AM

There is written a lot about barcodes in the forum, but i'm new to it.

In my shop I have to count all products once a year for accounting issues.
Many products come with barcodes on it, EAN-13

Maybe this is a good starting point to start using them.

  1. With hardware is best used in your opinion (I need a gun version for the shop, and one for reading on the ckechout (printing bills)
  2. Any nice working sample that is doing these tasks allready
  3. Actual printing routine for making the codes myself (there are some samples out here)

Any advice would help me...

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: Setup Barcode system in FWH
Posted: Mon Mar 11, 2019 05:03 PM

dear Marc,
I already asked the same question earlier but nobody could give me a simple answer.
When I was programming in Clipper87 or 5.0 in the nineties, it was easy to print barcodes using a library called "barlib" but I think there is no alternative within Harbour.
Thus, the same question: if someone can suggest me a simple way to print barcodes from any name or number, I would welcome it.
José (from Belgium)

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Setup Barcode system in FWH
Posted: Mon Mar 11, 2019 07:34 PM

Marc

I have used Barlib in the past .. give me your-mail address and I will send it to you.. you will probably have to re-compile the lib ..

Rick Lipkin

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Setup Barcode system in FWH
Posted: Mon Mar 11, 2019 07:57 PM
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: Setup Barcode system in FWH
Posted: Mon Mar 11, 2019 09:30 PM

Rick,
My emailadress = deschutterjose@gmail.com to become the barcode library
Thanks
José

Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: Setup Barcode system in FWH
Posted: Mon Mar 11, 2019 09:56 PM

Otto,
I have FW 9.11 but I do not find the easyreport prg that you say maing part of FW?? Or how can I update FW?
Kind regards
José (deschutterjose@gmail.com)

Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 01:17 AM

José, mira lo siguiente. A mi me funcionó.

viewtopic.php?f=6t=35711start=0hilit=cmsof
Saludos.

&&&

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 11:41 AM
On top of the program :

#include "Barcode.ch"

In your mak file add :

echo $(FWDIR)\lib\BARLIB32.lib + >> b32.bc

If you need these files : marc at maveco dot be

I would suggest that you upgrade, because there is so much new stuff in FWH .... Great !!!


Code (fw): Select all Collapse
function bartest()
  local opr, xStep, yStep, oBr, oFont
printer opr preview
define brush oBr color CLR_YELLOW
define font oFont name 'ARIAL' size 0,-8 of oPr
//oFont := TFont():New( "ARIAL", 0, -8, .F.,.t.,90,-2,,,,,,,,,oPr )
xStep:=oPr:nVertRes()/100
yStep:=oPr:nHorzRes()/5
page
//oPr:say(xStep*49,yStep*2.4,'BarCode Lib',oFOnt,2,CLR_GREEN)


@ 10*xStep,yStep/12 ean13 '7325930004328'of oPr BANNER font 'arial' // staat code eronder

@ 30*xStep,yStep*3.7 ean13 '7501157257703'of oPr color CLR_HRED BANNER FONT 'times'

// vertical

@ 20*xStep,yStep*3.7 ean13 '7501157257703'of oPr;
  color CLR_HRED vertical BANNER FONT 'times'



// BigCode

//@ 60*xStep,yStep ean13 '7501157257642' of oPr ;
//color CLR_BLUE width 0.1 size 7.5 banner font 'arial'

endpage

endprint
oBr:end()
oFOnt:end()

return
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 11:47 AM

Dag José,

Vanwaar ben je ? Ik van Opglabbeek, Limburg.

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 01:25 PM

Marc, dank voor de info
Ik ben van het Kortrijkse...een beetje verderop
Waar kan ik de barlib32 vinden?
grtjs
José

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 01:53 PM

Jose

Gmail rejected the attachment .. I sent the library via a file hosting site Hightail.com .. The .lib is configured for Borland ..

Rick Lipkin

Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 02:00 PM
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 07:23 PM

Marc,

I'm sorry for not replying sooner. I have integrated the barcode reader into my system. All readers essentially provide "keyboard input", so if you have a field, you can scan a barcode ( connected to the computer ) and it will put the data into that field.

The products all have UPC. ( Universal Product Codes ) which may differ from the partnumber printed on the box. For that reason, I provide a partnumber field and a separate UPC field. I also developed a function so my barcode reader could scan in a code, and add it to an array on the computer, and then the array UPC numbers could be processed however you want. Many barcode readers now are wireless. Some are bluetooth, and some have a USB receiver. Some work over a long distance, others require a closer proximity.

Although I provided the option to print barcodes years ago, I really don't see anyone using that anymore. Most barcoding is done for inventory control and parts sales. Since they are already on the packages, there is no need to print them.

My clients use the barcode reader for vehicle ID numbers, and to place items into inventory, and later to sell them ( place on an invoice ).

Make a list of where you want to use barcodes, then find a reader that suits your needs, and can read the codes associated with the items you will be scanning. After that, programming routines for the reader will be simple. Just consider it to be like programming for typed input, but the reader actually replaces the keyboard in that field.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 10:12 PM

Hello Tim,
do you have a solution to protect the input fields that are not intended for barcode.
Usually the barcode reader sends an "enter". Inadvertent use can easily close a dialog or window.
Kind regards
Otto

Posts: 124
Joined: Sat Dec 05, 2009 12:44 PM
Re: Setup Barcode system in FWH
Posted: Tue Mar 12, 2019 10:58 PM
Rick Lipkin wrote:Jose

Gmail rejected the attachment .. I sent the library via a file hosting site Hightail.com .. The .lib is configured for Borland ..

Rick Lipkin


Thank you Rick for sending me the barlib32 library.
By compiling and linking the example program I get a "linking error" saying that "the syntaxis of the filename, mapname or volume name is not correct"
What does that mean?
Thank you for an answer that could help me further
José