Telerik Forums
Kendo UI for jQuery Forum
0 answers
139 views

Hi

I've been playing around with the barcodes widget and I've noticed some confusing behaviour on the examples available.

I initially used the cheese example with some valid barcodes and noticed that entering an EAN13 in its full 13 digits causes an error and fails to show any barcodes. Using https://demos.telerik.com/kendo-ui/barcode/index if you change the code for the first item (Manchego) and change it to EAN13 and then enter a valid EAN13 (eg 9300657234720) it not only shows no barcode but also obliterates all of the following barcodes. If you remove the check digit (the last digit) then everything works.

I then found the API example https://demos.telerik.com/kendo-ui/barcode/api where I worked out what is happening. The Kendo widget is accepting ONLY the first 12 digits and then calculating the check digit for itself. So entering 

930065723472

will generate a valid barcode and will correctly calculate the check sum as 0.

However this means that the security of the checksum is stripped out meaning that if an end user manually types the example 

9300657234720

without the checksum  so

930065723472

but makes a transposition error with the last 7 with the last 4 to 

930065723742

then it will still generate a valid barcode 

930065723742 4

However the original barcode is for baked beans and the erroneously created barcode does not exist as a product.

Further if the original barcode is checked in its entirety but has the transposition error with the 4 and the 7 with the checksum 0 then this error would be caught https://barcode.tec-it.com/en/EAN13?data=9300657237420

So, my question is how do I use the Barcode widget and a full EAN13 with check digit to ensure that data entered is correct and that the barcode being generated is for baked beans not non existent products?

Sean
Top achievements
Rank 1
 updated question on 18 Aug 2023
2 answers
215 views

Hi,

My question is not specific to jQuery but to Kendo UI Barcode and PDF Export in general. 

If I have an HTML page that contains some text and a Kendo UI Barcode (svg), will PDF Export correctly render the barcode?

Also, if I were to generate an HTML page with text, barcode, tables, etc... kind of like a big long report or reciept, will PDF Export automatically resize the content and add page breaks for me? For example, if you try to print this page using Acrobat it automatically adjusts the HTML to fit the paper size and automatically adds page breaks.

Thanks

Joe
Top achievements
Rank 2
 answered on 14 Aug 2018
4 answers
267 views

HI

I have test the Kendo UI Barcode and have found some problems.

。The Barcode result will become rough while width does not enougth (even if renderAs: "canvas" or "svg").
(see Image1 - rough result)

。Larger width will cause error (even if height is greater then the suggested value) : 

    $(container).find("#gudbrands").kendoBarcode({
      value: "1234567890" ,
      type: "code39",
      width: 580,
      height: 100
    });

Uncaught Error: Insufficient Height. The minimum height for value: 1234567890 is: 87

    at o.prepareValues (kendo.all.min.js:97)
    
       at o.addData (kendo.all.min.js:97)
    
       at o.encode (kendo.all.min.js:97)
    
       at init._render (kendo.all.min.js:97)
    
       at init.createVisual (kendo.all.min.js:97)
    
       at init.redraw (kendo.all.min.js:97)
    
       at init.setOptions (kendo.all.min.js:97)
    
       at new init (kendo.all.min.js:97)
    
       at HTMLDivElement.<anonymous> (kendo.all.min.js:26)
    
       at Function.each (jquery-2.2.4.min.js:2)

My questions : 
1.Could Barcode could auto size by itself ? 
2.The height of the Barcode should not be limited(see Image2 - long code39)

Best regards

Chris

 

 

 

Konstantin Dikov
Telerik team
 answered on 28 Jun 2017
1 answer
36 views
Hi guys,

I'm trying the Kendo UI and I don't see support to encoding int2of5 (ITF - Interleaved Two of Five) in widget barcode documentation.
Is there a forecast time to give support to this encoding ?

T. Tsonev
Telerik team
 answered on 17 Dec 2014
1 answer
120 views
Hi,

I have a web application that is generating bar codes using Kendo UI Barcode API, however, when we print it using any printer (deskjet printer or barcode printer (Zebra GK420t) the printer barcode are not readable by the scanners.

Inline to this,  we have generated barcode using another tools and printed it and those barcodes are readable by the scanners.

I hope you can advise us on this.

Thanks,



Rei Banaag
Developer
T. Tsonev
Telerik team
 answered on 06 Aug 2014
1 answer
338 views
I am using the NuGet package Rotativa which in trun uses wkhtmltopdf.exe in a MVC 4 web application to generate PDF barcode documents from a standard MVC view.  While QRcode and Code128 barcodes work fine, Code39 and Code93 do not.  

The code to invoke the view is:

return (new Rotativa.ActionAsPdf("PrintTrailerPage", new { id = id, barcodeType = Request.Params["barcodeType"] ?? "qrcode" }) { FileName = String.Format("Trailer Page for {0}.pdf", model.DocumentName, model.BarcodeValue, model.ID), PageSize = Rotativa.Options.Size.Letter, PageOrientation = Rotativa.Options.Orientation.Portrait, PageMargins = { Left = 0, Right = 0, Top = 0, Bottom = 0 } });

Curiously, PrintTrailerPage, which Rotativa invokes, always renders properly when displayed directly in the browser.  Do you have any ideas or insight that might help remedy this issue?
T. Tsonev
Telerik team
 answered on 12 Jun 2014
3 answers
154 views
I want to retrieve bar code in byte array form, is this possible?
If not what other options could be?

Please reply ASAP.

Thanks,
Mahesh A
Petur Subev
Telerik team
 answered on 23 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?