publish
plugins.it2be_barcode info


Servoy Properties Summary
String build
Date buildDate
String component
Number version


Servoy Methods Summary
byte[] Codabar( String, Boolean )
byte[] Code128( String, Boolean )
byte[] Code128A( String, Boolean )
byte[] Code128B( String, Boolean )
byte[] Code128C( String, Boolean )
byte[] Code2of7( String, Boolean )
byte[] Code39( String, Boolean, Boolean )
byte[] Code3of9( String, Boolean, Boolean )
IBDataMatrix DataMatrix( )
byte[] EAN128( String, Boolean )
byte[] GlobalTradeItemNumber( String, Boolean )
byte[] Monarch( String, Boolean )
byte[] NW7( String, Boolean )
byte[] PDF417( String, Boolean )
byte[] SCC14ShippingCode( String, Boolean )
byte[] SSCC18( String, Boolean )
byte[] ShipmentIdentificationNumber( String, Boolean )
byte[] UCC128( String, String, Boolean )
byte[] USD3( String, Boolean, Boolean )
byte[] USD4( String, Boolean )
byte[] USPS( String, Boolean )


Servoy Properties Details


build
String  build
Returns the current version (major, minor, build)
Returns
String  build String

Supported Clients
SmartClient, WebClient, NGClient


buildDate
Date  buildDate
Returns date release date
Returns
Date  date Date

Supported Clients
SmartClient, WebClient, NGClient


component
String  component
Returns the component name
Returns
String  name String

Supported Clients
SmartClient, WebClient, NGClient


version
Number  version
Returns the current version (major, minor)
Returns
Number  version Double

Supported Clients
SmartClient, WebClient, NGClient

Servoy Methods Details


Codabar
byte[]  Codabar( String, Boolean )
Creates a Codabar linear barcode.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a Codabar linear barcode.
globals.barcode = plugins.it2be_barcode.Codabar(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


Code128
byte[]  Code128( String, Boolean )
Creates a Code 128 barcode.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a Code 128 barcode that dynamically switches between character sets
// to give the smallest possible encoding. This will encode
// all numeric characters, upper and lower case alpha characters and control characters
// from the standard ASCII character set. The size of the barcode created will be the
// smallest possible for the given data, and use of this 'optimal' encoding will
// generally give smaller barcodes than any of the other 3 'vanilla' encodings.
globals.barcode = plugins.it2be_barcode.Code128(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


Code128A
byte[]  Code128A( String, Boolean )
Creates a Code 128 barcode using the A character set.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a Code 128 barcode using the A character set. This will encode
// all numeric characters, upper case alpha characters and control characters
// from the standard ASCII character set. The Code 128 barcode supports on-the-fly
// character set changes using the appropriate code change symbol. The type A barcode
// also supports a one character 'shift' to set B.
globals.barcode = plugins.it2be_barcode.Code128A(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


Code128B
byte[]  Code128B( String, Boolean )
Creates a Code 128 barcode using the B character set.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a Code 128 barcode using the B character set. This will encode
// all numeric characters and upper and lower case alpha characters
// from the standard ASCII character set. The Code 128 barcode supports on-the-fly
// character set changes using the appropriate code change symbol. The type B barcode
// also supports a one character 'shift' to set A.
globals.barcode = plugins.it2be_barcode.Code128B(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


Code128C
byte[]  Code128C( String, Boolean )
Creates a Code 128 barcode using the C character set.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a Code 128 barcode using the C character set. This will encode
// only numeric characters in a double density format (e.g. 1 digit in the barcode
// encodes two digits in the data). The Code 128 barcode supports on-the-fly
// character set changes using the appropriate code change symbol. No shifts are
// possible with the type C barcode.
globals.barcode = plugins.it2be_barcode.Code128C(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


Code2of7
byte[]  Code2of7( String, Boolean )
Creates a 2 of 7 (Codabar) linear barcode.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a 2 of 7 (Codabar) linear barcode.
globals.barcode = plugins.it2be_barcode.Code2of7(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


Code39
byte[]  Code39( String, Boolean, Boolean )
Creates a Code 39 linear barcode.
Parameters
String  code  the code
Boolean  requiresChecksum  requires a checksum
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a EAN 128 barcode.
globals.barcode = plugins.it2be_barcode.EAN128(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


Code3of9
byte[]  Code3of9( String, Boolean, Boolean )
Creates a Code 3 of 9 (Code 39) linear barcode.
Parameters
String  code  the code
Boolean  requiresChecksum  requires a checksum
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Set the calculation of a checksum
var checksum = true;

// Print the text right under the barcode
var drawText = true;

// Create a Code 3 of 9 (Code 39) linear barcode.
globals.barcode = plugins.it2be_barcode.Code3of9(code, checksum, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


DataMatrix
IBDataMatrix  DataMatrix( )
Create a DataMatrix barcode object
Returns
IBDataMatrix  Object

Supported Clients
SmartClient, WebClient, NGClient


EAN128
byte[]  EAN128( String, Boolean )
Creates a EAN 128 barcode.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Set the calculation of a checksum
var checksum = true;

// Print the text right under the barcode
var drawText = true;

// Create a Code 39 linear barcode.
globals.barcode = plugins.it2be_barcode.Code39(code, checksum, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


GlobalTradeItemNumber
byte[]  GlobalTradeItemNumber( String, Boolean )
Creates a Global Trade Item Number (GTIN) based on the UCC/EAN 128 symbology.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Creates a Global Trade Item Number (GTIN) based on the UCC/EAN 128 symbology.
globals.barcode = plugins.it2be_barcode.GlobalTradeItemNumber(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


Monarch
byte[]  Monarch( String, Boolean )
Creates a Monarch (Codabar) linear barcode.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a Monarch (Codabar) linear barcode.
globals.barcode = plugins.it2be_barcode.Monarch(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


NW7
byte[]  NW7( String, Boolean )
Creates a NW-7 (Codabar) linear barcode.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a NW-7 (Codabar) linear barcode.
globals.barcode = plugins.it2be_barcode.NW7(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


PDF417
byte[]  PDF417( String, Boolean )
Creates a PDF417 two dimensional barcode.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a PDF417 two dimensional barcode.
globals.barcode = plugins.it2be_barcode.PDF417(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


SCC14ShippingCode
byte[]  SCC14ShippingCode( String, Boolean )
Creates an SCC-14 shipping code number based on the UCC/EAN 128 symbology.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create an SCC-14 shipping code number based on the UCC/EAN 128 symbology.
globals.barcode = plugins.it2be_barcode.SCC14ShippingCode(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


SSCC18
byte[]  SSCC18( String, Boolean )
Creates an SSCC-18 number based on the UCC/EAN 128 symbology.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create an SSCC-18 number based on the UCC/EAN 128 symbology.
globals.barcode = plugins.it2be_barcode.SSCC18(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


ShipmentIdentificationNumber
byte[]  ShipmentIdentificationNumber( String, Boolean )
Creates a shipment identification number based on the UCC/EAN 128 symbology.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a shipment identification number based on the UCC/EAN 128 symbology.
globals.barcode = plugins.it2be_barcode.ShipmentIdentificationNumber(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


UCC128
byte[]  UCC128( String, String, Boolean )
Creates a UCC 128 barcode.
Parameters
String  applicationIdentifier  the application identifier
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Set the correct application identifier
var identifier = "domain";

// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a UCC 128 barcode. This will encode numeric characters and must
// include the correct application identifier for the application domain in which
// you wish to use the barcode.
// applicationIdentifier The application identifier for the domain
globals.barcode = plugins.it2be_barcode.UCC128(identifier, code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


USD3
byte[]  USD3( String, Boolean, Boolean )
Creates a USD3 (Code 39) linear barcode.
Parameters
String  code  the code
Boolean  requiresChecksum  requires a checksum
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a USD3 (Code 39) linear barcode.
globals.barcode = plugins.it2be_barcode.USD3(code, checksum, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


USD4
byte[]  USD4( String, Boolean )
Creates a USD-4 (Codabar) linear barcode.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Creates a USD-4 (Codabar) linear barcode.
globals.barcode = plugins.it2be_barcode.USD4(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);


USPS
byte[]  USPS( String, Boolean )
Creates a US Postal Service barcode based on the UCC/EAN 128 symbology.
Parameters
String  code  the code
Boolean  drawText  the text to print

Returns
byte[]  the image byte[]

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Define the code you want to use
// IMPORTANT: not all types of barcodes can show alphanumeric characters
var code = plugins.dialogs.showInputDialog("create barcode", "set the number");

// Print the text right under the barcode
var drawText = true;

// Create a US Postal Service barcode based on the UCC/EAN 128 symbology.
globals.barcode = plugins.it2be_barcode.USPS(code, drawText);

// When you installed the Splash plugin you can
// test the output right away. The splash screen disappears after
// 10 seconds or you can click it away
plugins.it2be_splash.showImage(globals.barcode, 10, true, 3);