RadBarcode control can be used to visualize text as
Barcode using the popular Barcode standards. It is designed to be maximum light
and easy to use and still to do its job. It renders Scalable Vector Graphics
(SVG) directly into the HTML of your page by specifying encoding barcode standard
and text to be encoded. In browsers, like IE7 and IE8, which do not support
SVG, the barcode is dynamically converted to Vector Markup Language (VML) on
the client.
Here are the basic properties for configuring the RadBarcode
control and its appearance.
Text - Use to set the text that will be encoded and
rendered as a barcode. Note: If the value in the Text property is invalid for the selected type, the Barcode will not be visible.
Type - Use to change the type (standard) of the
rendered barcode. See all possible types in the documentation provided in the
related resources section.
ShowText - Set to "true" or "false" to
show or hide the text under the barcode.
ShowChecksum - Set to "true" or "false" to
show or hide checksum at the end of the text. This will matter only if ShowText
is set to "true".
RenderChecksum - Set to "false" if you don't
like to include the checksum to the barcode's image. By default this property
is "true", and scanning barcodes with most of the standards will be
possible only when they include checksum. You could use this properly to turn
off the auto calculated checksum if you already calculated it by yourself and
passed to the Text property text that contains checksum.
Width and Height - Use to specify width and
height of the control. By default they are set to "300px" and "150px", but you
can use any Unit you like. In some scenarios you may need to avoid inline
rendering of Width and Height in order to style easier with CSS. In this case
use Width="" and Height="" By design setting empty string is
different from Width=null, which will make the control to use its
default values.
ShortLinesLengthPercentage - Specifies the ration
between long and short lines in the rendered barcode and adjusts the Height
and Width of the bars as percentage of the barcode's wrapper. Expects
value varies from 0.00 to 100.00 (90 by default). ShortLinesLengthPercentage
is designed to be used in combination with the Font-Size property when
you need to make bigger text and shorter bars in order to avoid overlapping.