I am attempting to generate a UPCA barcode in the preview window however have been unable to do so. The barcode does not conform to the UPCA format. When I feed it a string I get some other kind of barcode and no checksum is generated from string given.
Here is the barcode code: pvwMain.AddBarCode strBCODE, prUPCA, pvwMain.CurrentX + 2880, pvwMain.CurrentY, 1440, 720
When I feed the entire string provided, including the checksum, i get no graphic output of a barcode image.
strBCODE comes from a csv file and is expressed as 75352002507 but on product box is 075352002507. The last digit "7" shoud be generated from previous 11 digits "07535200250" as hte leading 0 is padded on front of string before being passed to the preview control.
I use the Anex Barcode control (see http://www.anextech.com/ocx1D.htm) The control supports many barcode formats and use the .ClipBoardCopy to copy to the clipboard and .DrawPictureMemory to put it on the preview.
As I know, UPC-A is used for marking products which are sold at retail in the USA. The barcode identifies the manufacturer and specific product so point-of- sale cash register systems can automatically look up the price. I have ever used a barcode generator which supports generating UPC-A barcode in WinForms applications.