<% Function GetPar(Byval p, Byval d) if Request.Form(p) <> "" then Session(p) = Request.Form(p) else Session(p) = d end if If Session(p) <> "" Then GetPar = p & "=" & Session(p) & "&" Else GetPar = "" End if End Function Function OpCombo(Byval par, Byval valor) if Session(par) = valor then OpCombo = "selected" else OpCombo = "" end if End Function Function OpRadio(Byval par, Byval valor) if Session(par) = valor then OpRadio = "checked" else OpRadio = "" end if End Function Dim par par = "G=002&" par = par & GetPar("R", "300") par = par & GetPar("T", "int2of5") par = par & GetPar("L", "arial.ttf") par = par & GetPar("B", "") par = par & GetPar("E", "") par = par & GetPar("A", "600") par = par & GetPar("M", "") par = par & GetPar("D", "") par = par & GetPar("U", "") par = par & GetPar("P", "") par = par & GetPar("K", "") par = par & GetPar("H", "") par = par & GetPar("N", "") par = par & GetPar("S", "") par = par & GetPar("I", "") par = par & GetPar("C", "123456") if Right(par,1) = "&" then par = Left(par,len(par)-1) end if %> CGI WEBCODE - The barcode generator: Example # 2
Introduction Description
Download Registration
History Installation
Example 1 Example 2
FAQ E-Mail

Example # 2

WEBCODE

<% if par <> "" then %>

Generated barcode

<% end if %>


Above, the barcode generated according to the following characteristics. In order to generate the barcode again fill in the fields according to your preferences and click on the "Generate barcode" button.

PARAMETERS: VALUES / OPTIONS:
R - Desired resolution (in DPI or points):
 
 >75   >150  >300  >360  >600  >720  >points
T - Barcode pattern to be generated:
 
 
L - Caption fonte:
 
 
B - Narrow bars width (in mils or points):
 
 " maxlength="12">
E - Narrow spaces width (in mils or points):
 
 " maxlength="12">
A - Bar height (in mils or points):
 
 " maxlength="12">
M - UPC/EAN lengthening height (in mils or points):
 
 " maxlength="12">
D - Caption characters height (in mils or points):
 
 " maxlength="12">
U - Caption characters width (in mils or points):
 
 " maxlength="12">
P - Wide/Narrow ratio:
 
 >2.0  >2.5  >3.0  >automatic
K - Explicit check-digit generation:
 
 >Yes  >No   >automatic
H - Protection horizontal bars generation:
 
 >Yes  >No   >automatic
N - Caption generation:
 
 >Yes  >No   >automatic
S - Start/stop characters for Codabar or start for Code 128:
 
 ">
I - Shift A,B,C characters for Code 128:
 
 " size="10" maxlength="12">
C - Barcode to be generated:
 
 " maxlength="68">


To see the source code (ASP) of this page, click here