Home Search

DriveWorks Pro 21
Generate Barcode

Send Feedback

Generate Barcode

This Specification Macro Task will generate an image of a barcode encoded with the required content.


Mandatory Properties

Properties marked with a red asterisk (*) require a value to be entered.

This is identified on the task and is shown in the table below.

All other properties do not require a value for the task to run successfully.

Property NameDescription
TitleChanges the Title (not the name) of the Task.
Destination *The Full File Path and Name of the barcode file to create, including its extension.

The barcode can be saved as any common image type, such as:

  • .png
  • .jpeg
  • .jpg
  • .bmp
  • .gif
OverwriteTRUE to overwrite the destination file, otherwise FALSE.
Image Width (px)The pixel width of the image to output.
Image Height (px)The pixel height of the image to output.
Barcode Contents *The string to be encoded in the barcode.

Please see Barcode Contents (external link) for information on correctly formatting barcode information for different applications.

Barcode Type *The type of barcode used to generate the image.

Select one from:

  • CODE_128
  • CODE_39
  • PDF_417

Please see Types of Barcodes (external link) for more information.


When this Task is added the properties are static. To be able to build rules on a static properties see How To: Change A Static Property To A Dynamic Property.

Property NameExample RuleExample ResultMeaning
Destination"D:\DriveWorks\Projects\Specifications\Spec 9999\Barcode.png"D:\DriveWorks\Projects\Specifications\Spec 9999\Barcode.pngThis is the location, name and extension of the new file to be created.
OverwriteTRUETRUETRUE will overwrite the file if it exists FALSE will not.
Image Width (px)600600This will be the new width in pixels of the image that will be created.
Image Height (px)400400This will be the new height in pixels of the image that will be created.
Barcode Contents"https://www.driveworks.co.uk"https://www.driveworks.co.ukThe content that will be encoded in the barcode.
Barcode TypeQR_CODEQR_CODEWill generate a QR Code image.

Example Barcode Types

Barcode TypeExample Image