Scripting Sample 1


The above barcode is produced by placing the following VBScript code in an ASP page (the files black.gif and white.gif must be present in the same directory as the ASP file):
<%
set bo = Server.CreateObject("Easybaro.Barcode")
bo.BarcodeType = 6  'bc3OF9
bo.Data = "123458"
%>
<% = bo.GetHTML2(1, 40, 40, 0) %>
We can futher enhance this sample by adding a caption below the barcode, like this:

*123458*
The source code for this is:

<%
set bo = Server.CreateObject("Easybaro.Barcode")
bo.BarcodeType = 6  'bc3OF9
bo.Data = "123458"
%>
<TABLE><TR><TD>
<% = bo.GetHTML2(1, 40, 40, 0) %>
</TD></TR><TR><TD ALIGN=CENTER>
<% = bo.DefaultCaption %>
</TD></TR></TABLE>