FAQ Barcode Creation
How Can I Enable the 2D Composite Component for EAN-13?
How Can I Enable the 2D Composite Component for EAN-13?
First select the EAN-13 symbology in the barcode library.
Then add a 2D composite component with this function:
- TBarCode .NET:
barcodeControl1.Barcode.CompositeSymbol.CCType == CompositeComponentTypes.Auto; - TBarCode DLL:
BCSet2DCompositeComponent (pBarcode, eCC_Auto); - TBarCode OCX:
TBarCode111.CompositeComponent = eCC_Auto
The barcode data must consist of
<12 digits or 13 digits> + | + <2D data>
In order to create the correct size, we suggest to first set the module width to a suitable value (e.g. 0.339 mm) and then retrieve the total bar code size with BCGetBarcodeSize / CalculateBarcodeSize. Then use this size for drawing the bar code. For bitmap generation don't set a module width, instead use BCGetOptimalBitmapSize / CalculateOptimalBitmapSize to find the optimal bitmap Pixel dimensions.