Error generating a barcode

1 Answer 36 Views
Expressions Report Designer (standalone)
Elaine
Top achievements
Rank 1
Elaine asked on 16 Jan 2025, 04:36 PM | edited on 21 Jan 2025, 12:35 PM

Updating this, my EAN 128 barcode prints but it doesn't scan 

Can anyone help please. This worked with a different reports designer package. 

Fields.labelBarcode = "94002155449000028921" (for example) 

Report Designer:

   <Barcode Width="6cm" Height="1.635cm" Left="0.4cm" Top="2.044cm" Value="= Fields.labelBarcode" Stretch="False" Checksum="False" BarAlign="Center" Name="barcode1">
              <Style TextAlign="Center" VerticalAlign="Bottom">
                <Font Name="Code 128" Size="10pt" />
              </Style>
              <Encoder>
                <Code128CEncoder />
              </Encoder>              
            </Barcode>

 

Thanks.

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Jan 2025, 01:05 PM

Hi Elaine,

To generate an EAN-128 barcode, please use the EAN128 encoder of the Barcode item, for example:

        <Barcode Width="5.7in" Height="1.6in" Left="0.3in" Top="0.2in" Value="94002155449000028921" Stretch="False" Name="barcode1">
          <Encoder>
            <EAN128Encoder />
          </Encoder>
        </Barcode>

Additionally, it is not needed to set a specific font for the barcode item such as the "Code 128" font. Using a "barcode font" such as that one would help if you were trying to display a barcode via the TextBox item but that is not needed when using the dedicated Barcode item.

I had started looking at the thread before the update so I would also like to mention why there might have been an issue previously. It seemed that you were trying to add the Í symbol at the start of the string. However, the Barcode item requires using the '÷' ('\u00F7') symbol for the FNC1 control character - GS1-128 Specifics.

I hope that the provided information will help resolve the issue.

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
Expressions Report Designer (standalone)
Asked by
Elaine
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or