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?
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
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
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 } });