Key in your email here
Font Products
 Barcode Fonts
  • Code 39 Barcode
  • Code 128 Barcode
  • UCCEAN Barcode
  • ITF14 Barcode
  • I2of5 Barcode
  • UPC/EAN Barcode
  • GS1 Databar Barcode
 Download ConnectCode
 MICR Fonts
  • MICR E13B
  • MICR CMC7
 Download MICR

Using the Fonts
  • With the Font Encoder
  • With Excel
  • With Access
  • With Word
  • With Crystal Reports
  • Application Integration
     • With C#
     • With Visual Basic
     • With WPF (C#)
     • With WPF (VB)
     • With Visual C++

SDK Products
 .Net Barcode SDK
 Download SDK

Software Products
 Barcode Software Imager
 Download Imager


Barcode FAQ
 Barcode
  • Barcode Symbology
  • Barcode FAQ
  • Barcode Images
  • Barcode Font
 RFID
  • What is RFID?
 Thermal Printers
 Barcode Scanners
 OCR & OCR Fonts
 MICR & MICR Fonts

Barcode Resources
 Web Resources
 The Barcode CD Project
 Mobile Barcode Project



HTML Barcode API

This section describes the Javascript Application Programming Interface (API) of the HTML Barcode SDK. The parameters used in the API are described in the previous section. A sample usage of the API is provided for each barcode.

Codabar

DrawHTMLBarcode_Codabar(data,humanReadable,units, minBarWidth,width,height,barWidthRatio, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Codabar("12345678","yes","in",0,3,1,3,"bottom", "center","","black","white");

Code39

DrawHTMLBarcode_Code39(data,checkDigit,humanReadable,units, minBarWidth,width,height,barWidthRatio, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Code39("12345678",1,"yes","in",0,3,1,3,"bottom", "center","","black","white");

Code39 Ascii

DrawHTMLBarcode_Code39ASCII(data,checkDigit,humanReadable,units, minBarWidth,width,height,barWidthRatio, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Code39ASCII("12345678",1,"yes","in",0,3,1,3,"bottom", "center","","black","white");

Code93

DrawHTMLBarcode_Code93(data,checkDigit,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Code93("12345678",1,"yes","in",0,3,1,"bottom", "center","","black","white");

Code128 A

DrawHTMLBarcode_Code128A(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Code128A("12345678","yes","in",0,2.5,1,"bottom", "center","","black","white");

Code128 B

DrawHTMLBarcode_Code128B(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Code128B("12345678","yes","in",0,2.5,1,"bottom", "center","","black","white");

Code128 C

DrawHTMLBarcode_Code128C(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Code128C("12345678","yes","in",0,3,1,"bottom", "center","","black","white");

Code128 Auto

DrawHTMLBarcode_Code128Auto(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Code128Auto("12345678","yes","in",0,3,1,"bottom", "center","","black","white");

UCCEAN

DrawHTMLBarcode_UCCEAN(data,gs1Compliance,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_UCCEAN("12345678",1,"yes","in",0,2,1,"bottom", "center","","black","white");

I2of5

DrawHTMLBarcode_I2OF5(data,checkDigit,humanReadable,units, minBarWidth,width,height,barWidthRatio, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_I2OF5("12345678",1,"yes","in",0,3,1,3,"bottom", "center","","black","white");

Industrial 2of5

DrawHTMLBarcode_Industrial2OF5(data,checkDigit,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_Industrial2OF5("12345678",1,"yes","in",0,3,1,"bottom", "center","","black","white");

Modified Plessy

DrawHTMLBarcode_ModifiedPlessy(data,checkDigit,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_ModifiedPlessy("12345678",1,"yes","in",0,3,1,"bottom", "center","","black","white");

EAN13

DrawHTMLBarcode_EAN13(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_EAN13("12345678","yes","in",0,2,1,"bottom", "center","","black","white");

EAN8

DrawHTMLBarcode_EAN8(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_EAN8("12345678","yes","in",0,2,1,"bottom", "center","","black","white");

UPCA

DrawHTMLBarcode_UPCA(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_UPCA("12345678","yes","in",0,3,1,"bottom", "center","","black","white");

UPCE

DrawHTMLBarcode_UPCE(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_UPCE("12345678","yes","in",0,3,1,"bottom", "center","","black","white");

EXT2

DrawHTMLBarcode_EXT2(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_EXT2("12345678","yes","in",0,1,0.5,"bottom", "center","","black","white");

EXT5

DrawHTMLBarcode_EXT5(data,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_EXT5("12345678","yes","in",0,1.5,0.5,"bottom", "center","","black","white");

GS1 Databar 14

DrawHTMLBarcode_GS1Databar14(data,linkage,humanReadable,units, minBarWidth,width,height, textLocation,textAlignment,textStyle,foreColor,backColor)

Usage :

DrawHTMLBarcode_GS1Databar14("12345678",0,"yes","in",0,3,1,"bottom", "center","","black","white");


Other useful pages :


Back to HTML Barcode page.

Back to Barcode Software main page.

Copyright (C) 2004-2012, BarcodeResource.com. All Rights Reserved.