Forum > Beginners
How to insert GS1-128 barcode on report?
KaYs3r:
--- Quote from: paweld on June 18, 2024, 01:27:45 pm ---What type of code are you using?
--- End quote ---
I need GS1-128, and on the code I'm using bctEAN128
--- Quote from: paweld on June 18, 2024, 01:27:45 pm ---What is the scale of the barcode?
--- End quote ---
I'm currently using scale 2
--- Quote from: paweld on June 18, 2024, 01:27:45 pm ---What is the width of the label?
--- End quote ---
The label is 100mm wide
--- Quote from: paweld on June 18, 2024, 01:27:45 pm ---Provide some examples of the codes you are trying to print, and preferably share a sample project, because for now there is too little information to check and advise anything.
--- End quote ---
Here are some samples:
(02)05601164768437(37)30
(240)11021675(10)L24B727
(00)156006990409000825
Hope this helps you to help me ;)
Thanks
paweld:
Your problem probably comes from the fact that you have a stretch setting for the image field into which you insert the barcode. You can't do that because the barcode needs specific proportions between dashes and breaks to work, and stretching the image can't maintain those proportions.
Therefore, you need to set the scale so that the code fits on the label. From the examples you gave, the second code doesn't fit on a 10cm label at scale 2 (you need to set the scale to 1) but the first and 3rd codes will fit on this label without any problem ( at scale 2).
You can also set the scale to 0, then the corresponding scale will be set based on the maximum width of the code.
In the attachment you have a reworked previous example so that you can see what the problem is.
KaYs3r:
Hi everyone,
I've managed to make this work correctly. I'm now using Fortes Report, and found out how to generate the barcodes with the component, and it makes the barcode in vector format.
Thank you guys
Navigation
[0] Message Index
[*] Previous page