JavaScript
Códigos de barras en proyectos
Cómo utilizar el objeto código de barras con JavaScript
1
Puede crear el activeBarcode Control con script Java (por ejemplo, con Internet Explorer) en tiempo de ejecución y el uso no es 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();