Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 21.4 ('ChatGPT')
Instant purchase and download via GumRoad!

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 a 13 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 to 2 the lengths will be twice as long, with a 3, three times as long, and so on.

...End of Excerpt. Please purchase the magazine to read the full article.