Nonnoi Solutions
ASP/Barcode Component
CH.1 Overview

    ASP/Barcode is a server side COM component that allows web developers to add barcodes to their applications. It supports most standard barcodes : Code39, Code39Ext, Code128 (A,B,C, and Auto), Code93, Code93Extended, MSI, PostNet, Codabar, EAN8, EAN13 ,etc.

This component is shareware version without limitations on functionality or time, the only limitation is it displays a cross line on the barcode generated, if you want to remove it then you have to register it for US$50.
unregistered version:


ASP/Barcode Component
CH.2 Features
ASP/Barcode Component
CH.3 Installation
After you register the dll, place the barcode.asp (found in the demo folder) in your website's directory. Then use this HTML code in any page you wish to display the barcode: <img src="barcode.asp?image=1&type=14&data=<%=pass parameters here%>">

ASP/Barcode Component
CH.4 Reference
ImageTypeStr
String value indicating the image format: ImageType
Numeric value indicating the image format: BarcodeTypeStr
String value indicating the barcode type: BarcodeType
Numeric value indicating the barcode type: Checksum
Enable or disable checksum calculation for Code39, EAN8 or EAN13 (True or False).

ChecksumMethod
Numeric value indicating the Checksum Method type: Orientation
Numeric value specifying the orientation of the bar code: 0, 90, 180, 270

Data
Contents of the barcode.

NarrowBarWidth
Numeric value specifying the Width of narrow bar (Width of the smallest line in the barcode).

ShowText
Enable or disable show data of barcode in plain text (True or False).

Height
Numeric value specifying the Height of the resulting image of the barcode.

Ratio
A property specifying the ratio of wide bar over narrow bar.

BGColor
Numeric value specifying the color value.
Example:
Obj.BGColor RGB(&hFF, &h00, &h00)

BarColor
Numeric value specifying the bar color value.
Example:
Obj.BarColor RGB(&hFF, &h00, &h00)

SetTextFont (Name,Size,Color,Spacing)
Set font name, size, color and text spacing for show data of barcode in plain text.
Example:
Obj.SetTextFont "Arial",9,RGB(&hFF, &h00, &h00),1
Obj.SetTextFont "Arial",9,RGB(&hFF, &h00, &h00)
Obj.SetTextFont "Tahoma",9
Obj.SetTextFont "Verdana"

ShowBarcode
Method to generate image of barcode and return to browser.

SaveBarcode(FileName)
Method to generate image of barcode and save to file.
Parameters:
   FileName - save image of barcode to this specified name.

RegisterName
if you already registered this product, input your name (company name or customer name) here.
** you must set this value before call ShowBarcode or SaveBarcode.

RegisterKey
if you already registered this product, input your registration key here.
** you must set this value before call ShowBarcode or SaveBarcode.


ASP/Barcode Component
CH.5 Example
ASP :
<%
Set Obj = Server.CreateObject("nonnoi_ASPBarcode.ASPBarcode")
Obj.ImageTypeStr = "JPG"
Obj.BarcodeType = 14
Obj.Height = 50
Obj.Data = "1234567890"
Obj.ShowText = True
Obj.ShowBarcode

set Obj = nothing
%>


PHP :
<?php
// starting object
$Obj = new COM("nonnoi_ASPBarcode.ASPBarcode") or die("Unable to load ASPBarcode");
$Obj->Visible = 1;
$Obj->ImageTypeStr = "JPG"; // or use Obj.ImageType = 1
$Obj->BarcodeType = 14;
$Obj->Height = 50;
$Obj->Data = "1234567890";
$Obj->ShowText = True;
$Obj->ShowBarcode;
//free the object
$Obj = null;
?>


ASP (Registered User):
<%
Set Obj = Server.CreateObject("nonnoi_ASPBarcode.ASPBarcode")
Obj.ImageTypeStr = "PNG"
Obj.BarcodeType = 14
Obj.Height = 50
Obj.Data = "1234567890"
Obj.ShowText = True
Obj.RegisterName = "Nonnoi"
Obj.RegisterKey = "0123456-789"
Obj.ShowBarcode

set Obj = nothing
%>


ASP/Barcode Component
CH.6 Update & Order
 Click here for prices and discount information.
 Click here for product news & information.
 Click here for product support or any comment.