JavaScript
Códigos de barras em projetos

Como usar o objeto código de barras com JavaScript

1

Você pode criar o controle ActiveBarcode com script Java (por exemplo, com o Internet Explorer) em tempo de execução e uso não é Visual:

// Create the control:
ab = new ActiveXObject("ACTIVEBARCODE.BarcodeCtrl.1");

// Set the barcode type and content:
ab.text = "Example";
ab.typename = "Code 128";

// Save the barcode as image file:
ab.SaveAsBySize("example.bmp", 400, 100);

// Example: Show the controls about box:
ab.aboutbox();