Hi guys, Your barcode web control works great, but we have a need in several patient care engagements for the Aztec barcode protocol. We'd love to use Telerik exclusively and not have to use some other set of tools on these engagements. Thanks for considering it.
I think the radbarcode control is generating the wrong barcode. Here is my code;
RadBarcode theControl = new RadBarcode(); BarcodeType theType = BarcodeType.PDF417; theControl.Type = theType; theControl.PDF417Settings.AspectRatio = 10; theControl.PDF417Settings.ErrorCorrectionLevel = 0; theControl.PDF417Settings.EncodingMode = Telerik.Web.UI.Barcode.PDF417ClassLibrary.EncodingMode.Text; theControl.Text = clsJobBarcode.CreateNewJobString(theClass.Job, theClass.Release, theClass.Lot); System.Drawing.Image theImage = theControl.GetImage(); theImage.Save(thePath + "barcode.png", System.Drawing.Imaging.ImageFormat.Png);
The file barcode.png is the output of this code. The input into the barcode is:
from a breakpoint in my code at the theImage = theControl.GetImage();
I'm reading the barcode with a Zerbra TC-20 mobile computer with a barcode reader. It says the barcode contains "A2552013|DED|21102A".
First off can you guys authenticate the attached barcode does have DED rather than R320?
If so, any ideas what I'm doing wrong?
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:ASPX:
The ShowText="true" property is not taken under account when the OutPutType="EmbeddedPNG" is set:
<telerik:RadBarCode runat="server" OutputType="EmbeddedPNG" LineWidth="1" Type="Code128" Text="1234567" ShowText="true"></telerik:RadBarCode>
Can be observed in the Barcode - Barcode Types online demo.
Barcode Type: Code128
Required Value: IEö6014649
Resulted Value: IE996014649
ADD GS1-128 standard for RadBarcode Until that's available in UI for ASP.NET AJAX, you can use the Kendo Barcode widget: https://dojo.telerik.com/@bratanov/iPOxiniw
WORKAROUNDS: - 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>
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