Last Updated: 08 May 2020 17:43 by ADMIN

Using an ampersand character in RadBarcode's Text leads to a server-side error. Replacing the symbol with its corresponding HTML entity allows the control to render its text successfully, but the generated image corresponds to the passed entity character.

If RadBarcode1.Text="&" the control generates this (read as "&"):

while it should be this (read as "&"):


When we generate the image by keeping ShowText = True, then it throws the exception.

When we generate the image by keeping ShowText = false, then it successfully generates the image.

Steps to reproduce:Run the following setup:

        <telerik:RadBarcode ID="RadBarcode1" runat="server" RenderChecksum="false"></telerik:RadBarcode>
    protected void Page_Load(object sender, EventArgs e)
        RadBarcode1.OutputType = Telerik.Web.UI.BarcodeOutputType.SVG_VML;
        RadBarcode1.Type = Telerik.Web.UI.BarcodeType.Code128;
        RadBarcode1.Text = "string&string"; //leads to server-side error
        //RadBarcode1.Text = "string&amp;string"; //leads to wrongly generated barcode

        RadBarcode1.LineWidth = 0;
        RadBarcode1.ShowText = true;
        RadBarcode1.ShowChecksum = false;

Last Updated: 15 Jan 2020 08:46 by ADMIN
Release R1 2020
Created by: Peter Milchev
Comments: 3
Category: Barcode
Type: Bug Report

Last Updated: 20 Mar 2019 16:36 by ADMIN

Can be observed in the Barcode - Barcode Types online demo.

Barcode Type: Code128

Required Value: IEรถ6014649

Resulted Value: IE996014649

Last Updated: 08 Jun 2018 19:59 by ADMIN
- set OutputType to SVG_VML
- set ShowChecksum to false

Sample problematic setups:   

<telerik:RadBarcode runat="server" ID="RadBarCode2" Text="238.339.6814" Type="Code93Extended" OutputType="EmbeddedPNG" ShowChecksum="true"></telerik:RadBarcode>

<telerik:RadBarcode runat="server" ID="RadBarCode1" Text="238.339.6814" Type="Code93" OutputType="EmbeddedPNG" ShowChecksum="true"></telerik:RadBarcode>
Last Updated: 29 Apr 2015 13:22 by Dave
Created by: Dave
Comments: 0
Category: Barcode
Type: Bug Report
UPCE barcodes aren't recognized by scanners. Check digit is calculated incorrectly.  Use 137350 ... should result in 01373501 where '0' and '1' are the numbers on the ends of the barcode.  Many other barcode generating scripts will correctly output a UPCE barcode that scans with the correct check digit. Even when the correct code 01373501 is assigned to the radbarcode it re-assigns an incorrect check digit of '2' so the resulting code reads 01373502 and is not able to be read by the scanner