Search

Atalasoft Knowledge Base

FAQ: Does Atalasoft Offer a QR Writer

Tananda
DotImage

Atalasoft's Barcoding.Writing namespace currently provides the ability to generate images with multiple 1D barcode types as well as Pdf417 and DataMatrix barcodes. However, one offering that has been missing is QR Code creation.

The Support Team has created a class library to provide a new QRCodeBarcodeWriter class to enable creation of QR Codes with DotImage

It is our intent to eventually include this with the base Barcoding.Writing product, but this will take some time to go through the development process

Version

This will need a new version created for each fixpack/release of DotImage

The current version is 11.5.0.10

Download

The required DLLs can be downloaded as AtalaSupportUtils.QrCodeBarcodeWriter_11.5.0.10.zip

NOTE that this was built against 11.5.0.10.

If you require a different Atalasoft version, Support may be able to build it for you. Please create a support case and ask for the QRCodeBarcodeWriter for the specific full version you're after. Also please indicate "bitness" (x86 or x64) and the target .NET Framework.

Description

This is an Atalasoft-compatible QR Code Barcode Writer class (AtalasupportUtils.QRCodeBarcodeWriter)
It was designed to implement familiar functionality to our DataMatrixBarcodeWriter class, but adds some useful convenience
methods to make the creation of QR Codes with Atalasoft even easier.

This is very much an "Atalasoft-compatible" wrapper around Shane32/QRCoder. Atalasoft Support created this as a means to
provide a missing option for barcode writing due to the immense popularity of QR Codes.

Installation / Deployment
You will need to extract the AtalasoftSupportUtils.QRCodeBarcodeWriter.zip file to a known location
If you have admin rights it can go into
C:\Program Files (x86)\AtalasoftSupportUtils.QRCodeBarcodeWriter
Alternately,
C:\ProgramData\AtalasoftSupportUtils.QRCodeBarcodeWriter
works nicely.

Target Framework and bitness

Bitness
Our SDK "has Bitness" so your solution must target x86 or x64
DLLs for both are supplied

Supported .NET

Currently, this project support .NET Framework 4.6.2-4.8 and .NET (Core) 8.0 + (windows only)

In order to target .NET 8.0+ you must ensure you specify Windows and set UseWindowsForms true in your csproj/vbproj
file:

<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>

Referencing QRCodeBarcodeWriter

You will need to Add Reference to the framework and bitness of your solution from

.NET Framework 4.6.2-4.8.1

%AtalasoftSupportUtils.QRCodeBarcodeWriter%/bin/4.6.2/x64
%AtalasoftSupportUtils.QRCodeBarcodeWriter%/bin/4.6.2/x86

.NET 8+

%AtalasoftSupportUtils.QRCodeBarcodeWriter%/bin/8.0/x64
%AtalasoftSupportUtils.QRCodeBarcodeWriter%/bin/8.0/x86

 Include AtalasupportUtils.QRCodeBarcodeWriter.dll in your solution by referencing the appropriate DLL

Dependencies

You need to reference (and license)

Atalasoft.dotImage.dll
Atalasoft.dotImage.Lib.dll
Atalasoft.dotImage.Barcoding.Writing.dll
Atalasoft.Shared.dll

These can be found under
C:\Program Files (x86)\Atalasoft\DotImage\11.5\bin\
(subfolders for 4.6.2 / 6.0 and sub sub folders for x86 and x64)

Embedding Licensing

 In order to embed your licensing, you'll need these two lines in your licenses.licx file

Atalasoft.Imaging.AtalaImage, Atalasoft.dotImage
Atalasoft.Barcoding.Writing.BarcodeWriter, Atalasoft.dotImage.Barcoding.Writing

Please see HOWTO: License an EXE for Deployment (.NET Framework)

Usage

Once you've got your dependencies referenced, you should now be able to create a QRCodeBarcodeWriter and use its features

Simple Barcode Image with text

using AtalaSupportUtils;
//... this is presumed to be inside a suitable class/method call
QRCodeBarcodeWriter writer = new QRCodeBarcodeWriter();
using (AtalaImage sampleCode = writer.Generate("This is my First Barcode, Hello world!"))
{
    sampleCode.Save("sample_barcode.png", new PngEncoder(), null);
}

Barcode Image with Embedded Icon

using AtalaSupportUtils;
//... this is presumed to be inside a suitable class/method call
QRCodeBarcodeWriter writer = new QRCodeBarcodeWriter();
using (AtalaImage sampleCode = writer.Generate("This is my First Barcode, Hello world!", BitmapContiningIconHere ))
{
    sampleCode.Save("sample_barcode.png", new PngEncoder(), null);
}

API Reference / Documentation

Please see AtalaSupportUtils_QRCodeBarcodeWriter_Rerference.pdf

Details
Last Modified: Last Week
Last Modified By: Tananda
Type: FAQ
Article not rated yet.
Article has been viewed 149 times.
Options
Also In This Category