Codeless Barcode Generation is simple and the concept is very straightforward. For enabling CBG in an ASP.NET web application, you must:
- Add a reference to Neodynamic.WebControls.BarcodeProfessional.dll assembly in your project (BIN folder).
- Set up the Web.config file of your ASP.NET Web Application so it can recognize CBG. CBG requires you specify an ASP.NET HTTP Handler name to associate it to Barcode Professional assembly. That name can be any you want, but we recommend using BarcodeGen.axd. So, supposing you decide naming CBG in that way, then the web.config entry must be set up as follows:
<system.web> ... <httpHandlers> <add verb="*" path="BarcodeGen.axd" type="Neodynamic.WebControls.BarcodeProfessional.BarcodeProfessional, Neodynamic.WebControls.BarcodeProfessional"/> </httpHandlers> ... </system.web>
- The last step involves creating a special/formatted URL and set up it to ImageUrl property of an Image control. For example, the following URL will generate a Code 39 barcode encoding the value 1234567890
Image1.ImageUrl = "~/BarcodeGen.axd?S=Code39&C=1234567890"In the sample URL string, the S parameter is for specifying the Barcode Symbology you want to create and the C parameter is for specifying the value to encode in the specified Symbology.
The URL for CBG lets you to specify many other parameters like Bar's Width and Height, DPI, Output Image Format, Font, additional Text, etc. Below is a list of valid parameters and their meanings.CBG URL ParametersThe following parameters (in the first column) have the same meaning of the associated BarcodeProfessional property (in the second column). The third column shows an example for each parameter. In addition, please refer to Note column for some additional info about each parameter.IMPORTANT
- The URL is composed of a series of param-value pairs.
- The first parameter in the URL must be S (for Syambology), followed by C (for value to encode "Code" property) and finally followed by any other parameters.
- Param-value pairs are separated by & (ampersand character).
- The param-value pairs are each separated by an equal sign.
PARAM
BarcodeProfessional Property
Example
NOTE
AC
AC=T
Just do not specify this param if it has False value
AA
AA=T
Just do not specify this param if it has False value
ACEC
ACEC=23
ACF
ACF=Auto
Param's value must be one of the AztecCodeFormat Enumeration values
ACR
ACR=-1
BKC
BKC=#FFFFFF
It must be specified as a HTML color
BC
BC=#000000
It must be specified as a HTML color
BU
BU=Inch
Param's value must be one of the BarcodeUnit Enumeration values
BH
BH=0.5
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
BR
BR=2
BW
BW=0.01
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
BWA
BWA=0.0001
Values can be positive (enlarge) or negative (reduce).
BBS
BBS=Frame
Param's value must be one of the BearerBarStyle Enumeration values
BBW
BBW=0.05
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
BRC
BRC=#000000
It must be specified as a HTML color
BRW
BRW=2px
Values must be specified in pixels
BM
BM=0.1
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
BPAD
BPAD=0.1
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
CSC1
CSC1=A
Param's value must be one of the CodabarStartStopChar Enumeration values
CSC2
CSC2=B
Param's value must be one of the CodabarStartStopChar Enumeration values
C
C=1234567890
C128CS
C128CS=Auto
Param's value must be one of the Code128 Enumeration values
C16KM
C16KM=Mode0
Param's value must be one of the Code16k Enumeration values
CA
CA=BelowCenter
Param's value must be one of the Alignment Enumeration values
DME
DME=Auto
Param's value must be one of the DataMatrixEncoding Enumeration values
DMF
DMF=Auto
Param's value must be one of the DataMatrixFormat Enumeration values
DMPT
DMPT=T
Just do not specify this param if it has False value
DCHK
DCHK=T
Just do not specify this param if it has False value
DC
DC=T
Just do not specify this param if it has False value
DLMI
DLMI=T
Just do not specify this param if it has False value
DSSC
DSSC=T
Just do not specify this param if it has False value
DPI
DPI=96
EUS
EUS=Digits5
Param's value must be one of the Supplement Enumeration values
EUSC
EUSC=12345
For this param takes effect, EUS param must be specified
EUSS
EUSS=0.15
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
EUSTM
EUSTM=0.15
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
EXT
EXT=T
Just do not specify this param if it has False value
FITW
FITW=1.5
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
FITH
FITH=0.75
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
FNTB
FNTB=T
Just do not specify this param if it has False value
FNTI
FNTI=T
Just do not specify this param if it has False value
FNTN
FNTN=Arial
FNTSZ
FNTSZ=10
Values must be specified in points
FNTS
FNTS=T
Just do not specify this param if it has False value
FNTU
FNTU=T
Just do not specify this param if it has False value
FNTC
FNTC=#000000
It must be specified as a HTML color
GB
GB=T
Just do not specify this param if it has False value
GBH
GBH=0.5
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
HFHRT
HFHRT=T
Just do not specify this param if it has False value
HQGIF
HQGIF=T
Just do not specify this param if it has False value
HRT
HRT=Product ID - 12345
IFMT
IFMT=Gif
Param's value must be one of the BarcodeImageFormat Enumeration values. NOTE: You can also specify WBMP string for Wireless Bitmap image format and EPS for Encapsulated PostScript format.
IDS
IDS=DS001
Param's value must be one of the Isbt128DataStructure Enumeration values.
LPAD
LPAD=0.1
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
MXM
MXM=Mode4
Param's value must be one of the MaxiCodeModes Enumeration values.
MXPT
MXPT=T
Just do not specify this param if it has False value
MXSC
MXSC=1
MXSI
MXSI=1
MPDFV
MPDFV=Auto
Param's value must be one of the MicroPdf417Version Enumeration values.
MQR
MQR=Auto
Param's value must be one of the MicroQRCodeVersion Enumeration values.
1BPP
1BPP=T
Just do not specify this param if it has False value
MSICHK
MSICHK=OneMod10
Param's value must be one of the MsiChecksum Enumeration values.
PDFAR
PDFAR=0.5
Float point number from 0 to 1
PDFC
PDFC=0
Integer number from 0 to 30
PDFCT
PDFCT=Auto
Param's value must be one of the Pdf417CompactionType Enumeration values.
PDFEC
PDFEC=Level2
Param's value must be one of the Pdf417ErrorCorrection Enumeration values.
PDFID
PDFID=123
PDFR
PDFR=0
Integer number from 3 to 90, or 0 (zero) for auto
PDFSC
PDFSC=2
PDFSI
PDFSI=0
PDFT
PDFT=T
Just do not specify this param if it has False value
PHBS
PHBS=0.04
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
PHBW1
PHBW1=0.06
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
PHBW2
PHBW2=0.02
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
PLHSB
PLHSB=0.06
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
PLHTB
PLHTB=0.135
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
P4SSSC
P4SSSC=T
Just do not specify this param if it has False value
P4SBS
P4SBS=0.03
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
P4STBH
P4STBH=0.08
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
P4STBW
P4STBW=0.02
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
POHSB
POHSB=0.06
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
POHTB
POHTB=0.135
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
QRBE
QRBE=ISO-8859-1
QRE
QRE=Auto
Param's value must be one of the QRCodeEncoding Enumeration values.
QREC
QREC=M
Param's value must be one of the QRCodeErrorCorrectionLevel Enumeration values.
QRV
QRV=Auto
Param's value must be one of the QRCodeVersion Enumeration values.
QZ
QZ=0.1
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
RPAD
RPAD=0.1
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
ROT
ROT=None
Param's value must be one of the Rotate Enumeration values.
SPR
SPR=4
S
S=Code39
Param's value must be one of the Symbology Enumeration values.
T
T=Product ID
TA
TA=AboveCenter
Param's value must be one of the Alignment Enumeration values.
TFNTB
TFNTB=T
Just do not specify this param if it has False value
TFNTI
TFNTI=T
Just do not specify this param if it has False value
TFNTN
TFNTN=Arial
TFNTSZ
TFNTSZ=10
Values must be specified in points
TFNTS
TFNTS=T
Just do not specify this param if it has False value
TFNTU
TFNTU=T
Just do not specify this param if it has False value
TFNTC
TFNTC=#000000
It must be specified as a HTML color
TIFFC
TIFFC=CCITT4
Param's value must be one of the TiffCompression Enumeration values.
TM
TM=0.1
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
TPAD
TPAD=0.1
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
UPCE
UPCE=System0
Param's value must be one of the UpcE Enumeration values.
UQZT
UQZT=T
Just do not specify this param if it has False value
FIM
FIM=A
Param's value must be one of the FIM Enumeration values.
HBC
HBC=10
MS
MS=0.02
Values must be specified in the same unit set up to BarcodeUnit property. Default is inch.
Visit Neodynamic's website.