Recent

Author Topic: How to insert GS1-128 barcode on report?  (Read 2998 times)

KaYs3r

  • New member
  • *
  • Posts: 8
Re: How to insert GS1-128 barcode on report?
« Reply #15 on: June 18, 2024, 01:51:07 pm »
What type of code are you using?
I need GS1-128, and on the code I'm using bctEAN128

What is the scale of the barcode?
I'm currently using scale 2

What is the width of the label?
The label is 100mm wide

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.
Here are some samples:
(02)05601164768437(37)30
(240)11021675(10)L24B727
(00)156006990409000825

Hope this helps you to help me ;)

Thanks 


paweld

  • Hero Member
  • *****
  • Posts: 1268
Re: How to insert GS1-128 barcode on report?
« Reply #16 on: June 18, 2024, 03:29:16 pm »
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.
Best regards / Pozdrawiam
paweld

KaYs3r

  • New member
  • *
  • Posts: 8
Re: How to insert GS1-128 barcode on report?
« Reply #17 on: June 19, 2024, 11:04:14 am »
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

 

TinyPortal © 2005-2018