JavaScript
Codici a barre nei progetti

Come utilizzare l'oggetto codice a barre con JavaScript

1

È possibile creare il controllo ActiveBarcode con script Java (ad esempio, con Internet Explorer) in fase di esecuzione e l'utilizzo non è visivo:

// 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();