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 17.4 ('100th Issue')
Instant purchase and download via GumRoad!


Creating Barcodes in Xojo

How you can create more than 80 different types of barcodes in Xojo

Issue: 17.4 (July/August 2019)
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): 12,739
Starting Page Number: 36
Article Number: 17405
Related Link(s): None

Excerpt of article text...

Today many companies use barcodes because it makes work faster. With the MBS Barcode Plugin for Xojo, more than 80 different types of barcodes in 1D and 2D can be generated, which can be processed as an image and even placed on an existing image.

Another possibility is to save the images in a container or in a file. With the MBS DynaPDF Plugin functions, the barcode can even be output as a vector graphic in a PDF (see Figure 1).

Barcode as Image

The BarcodeGeneratorMBS class is used to generate a barcode. You can set various options for the barcode and then call the encode function to create the barcode. With properties for the picture and vector graphics, you can read the final image for the barcode.

With this code example you can generate a QRCode (see Figure 2) and save it in a file:

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