This is a migrated thread and some comments may be shown as answers.

Cannot scan

1 Answer 124 Views
Barcode
This is a migrated thread and some comments may be shown as answers.
Bertha
Top achievements
Rank 1
Bertha asked on 17 Oct 2018, 11:29 AM

I have used this code to generate barcode to excel.   I tried Code 39 and EAN128.  But the barcode scanner cannot read.  What is missing in here?  Where can I find demo & documentation for winform barcode to excel?  Thanks.

                Telerik.WinControls.UI.Barcode.Symbology.EAN128 code39Extended1 = new Telerik.WinControls.UI.Barcode.Symbology.EAN128();
                RadBarcode rBL = new RadBarcode();
                rBL.Symbology = code39Extended1;
                rBL.Value = "EE4698";
                rBL.LoadElementTree();
                Image imgBL = rBL.ExportToImage();
                imgBL.Save("c:\\temp\\img.jpg");

                oSheet.Cells[1, 1] = "EE4698";
                oSheet.Shapes.AddPicture("c:\\temp\\img.jpg", MsoTriState.msoFalse, MsoTriState.msoCTrue, 50, 50, 300, 45);

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 18 Oct 2018, 10:29 AM
Hi Bertha,

Thank you for writing.

We do not have an example handling a scenario of exporting the barcode and using the generated image in Excel. Generally speaking, as long as you can import the image to Excel it should be read by your scanner. The experienced issue is not related to the actual scenario in Excel but rather with the generated barcode. I have logged an issue on our feedback portal, here: FIX. RadBarcode - the Checksum property of the EAN128 property should be set to true. I have also updated your Telerik points. Can you please try creating the barcode this way: 
Telerik.WinControls.UI.Barcode.Symbology.EAN128 code39Extended1 = new Telerik.WinControls.UI.Barcode.Symbology.EAN128();
code39Extended1.Checksum = true;
this.radBarcode1.Symbology = code39Extended1;
this.radBarcode1.Value = "EE4698-IT";

I hope this helps. Let me know if you need further assistance.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Barcode
Asked by
Bertha
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or