home *** CD-ROM | disk | FTP | other *** search
- ********************************************************************************************
- Barcode component for Delphi
- ********************************************************************************************
-
- This package is published as freeware, but contains no source.
-
- How does this thing work? Simpel!
-
- 0. Install the component. Consult your manuel for further instrctions
- You find a DCU+DCR for Delphi 1-3 in the D1-3 subdir
-
- 1. Drop the Barcode component on a form
-
- 2. It contains the following property's:
-
- property BarcodeHeight : Word // In pixels
- property BarType : TBarcodeType // TBarcode = TBarcodeType = (EAN_13,XCODE_39,CODE_39);
- property Barcode : String // The actual Barcode data
- property DPI : Word // What DPI to generate the barcode to
-
- I've declared four Exceptions:
-
- Try
- barcode1.TestBarcode;
- except
- On EWrongNumber Do begin st:='Wrong number of digits'; error:=True; end;
- On EOnlyNumeric DO begin st:='Only numbers allowed!'; error:=True; end;
- On ECheckDigitFail Do begin st:='Check digit NOT correct'; error:=True; end;
- On ECharacterInValid Do Begin st:='Illegal character';error:=True; end;
- End;
-
- Consult manual.txt to determin witch exceptions occur with witch barcodes
-
- 3. To Receive the generated barcode:
-
- if error Then MessageDlg(st, mtError, [mbOk], 0)
- Else Image1.Picture.Bitmap:=barcode1.getBarcode;
-
- GetBarcode returns a TBitmap, ready for further use in your program.
-
- 4. I have shipped a small test appl. It will show how to use the module......
-
- There is more to come. I am working on Code128, Interleave 2 of 5 etc etc. Keep looking!
-
- This component may be used by anyone, anywhere, anyhow. If it gives you any problems, don't
- start blaming me, you did not pay for it!
-
- Do you want the source AND do you have something to trade with, drop an email to:
-
- Thorstein@vip.cybercity.dk
-
- -- Allan Th. Poulsen
- Hjoerring 15. april 1997