Article Preview
Buy Now
COLUMN
Create a Barcode in Xojo
Using the MBS plugins to create barcodes
Issue: 21.4 (July/August 2023)
Author: Stefanie Juchmes
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 7,029
Starting Page Number: 64
Article Number: 21408
Related Link(s): None
Excerpt of article text...
Today I want to show you how to generate a barcode in Xojo. For this we use the class
BarcodeGeneratorMBS
from the MBS Barcode Plugin for Xojo.First we create an instance. Then we can set the individual properties for this instance.
We need to decide what kind of barcode we want to have. We have a choice of over 80 different barcode types. We can set the barcode type in the
Symbology
property.We can specify the type with a constant or as a number. For example, if we want to create an EAN8 barcode, we can either specify
b.BarcodeEan8
or specify a13
instead.Further, we can specify the scaling. The scaling determines the size of the output image of the barcode. The default value is
1
. This is the normal size of the barcode. If you set the value to2
the lengths will be twice as long, with a3
, three times as long, and so on.
...End of Excerpt. Please purchase the magazine to read the full article.