dLSoft

Quick_links...

Search site
Trial products
Online tutorials

Products

Barcodes for Office
Barcode creators
Barcode fonts
Developer tools
Label printing
Labelling tools
Windows Phone

Resources

New to barcodes?
How To ...
Support centre
Tutorial centre
Which product

For users

Common problems
What's New?
Newsletter
Online registration
Contact us

GS1

Award 2009

Award 2008

Powered by a
UK2 VPS

Universal 2D Barcode Font kit

The Universal 2D Barcode Font kit includes the fonts and both 32 and 64 bit ANSI and Unicode DLLs and 32 and 64 bit Active-X components, and a fully-managed-code .NET component (Framework version 2.0 or later), allowing calls from most programming languages to convert a character string into an Aztec, Datamatrix, PDF417, or QR Code barcode.

The kit does NOT currently support GS1 Databar.

The DLL/OCX is suitable for calling from Visual Basic, VB.NET, C#, Visual C++, Microsoft Office, C++ Builder and many other development systems. The DLL/OCX provides control over the Aspect ratio of the barcode (Height/Width ratio), the Security level, and the encoding Start Mode.

The OCX may be used through its properties, and the Caption property may be bound to a database field.

Supports  Aztec, Datamatrix, PDF417 (including micro PDF), QR Code (including micro QR Code) barcodes.

The kit includes examples (with source code) for C/C++, MS Access, VB6 and VB.NET. Also included are mailmerge samples for Access and Excel data sources.

Push button    to Download or buy

2D barcode font showing Korean QR Code symbol

Demo program showing symbol made from Korean characters


Sample code in C/C++

A typical C/C++ call to the DLL to convert and output a text string is:

iCodetype=2;             // 2 for PDF417
iColumns=4;              // 4 for 4 columns of data
iSecurityLevel=0;     // 0 for default
iStartMode=0;             // 0 for automatic
iFlags=0;
strcpy(szData,"ABCDEFGHIJKLMNOPQRSTUVWXYZ");
n=Bar2DUf(&iCodetype,(LPSTR)szData,&nl, &iColumns, &iSecurityLevel, &iStartMode,&iFlags,(LPSTR)szBarcode);
x=50;                         // starting X
y=100;                      // starting y
ht=0;
linespace= {selected font height}
pszk=(LPSTR)szBarcode;             // pointer to barcode string
for (i=0; i<MAXCHARS; i++)
{
    nlength=strlen(pszk)+1;
    for (pszl=pszk; ; pszl++)
    {
        if ((unsigned)*pszl<='\n')
            break;
    }
    nlength=(int)(pszl-pszk);
    if(nlength>0)
    {
        while ((nlength>0) && (unsigned)(c=*(pszk+nlength-1))<=' ')
            nlength--;
        ynew=y-ht;
        pDC->TextOut(x,ynew,pszk,nlength);
    }
    ht += linespace;
    pszk=pszl+1;
    if ((*pszl=='\0') || (strlen(pszk)<1))
        break;
}

[Alternative string handling routines may be preferred]

The iFlags value may be used in the Unicode version to allow data to be encoded as Unicode, greatly simplifying the encoding of non-western character sets.


Sample code in VB.Net

A typical VB call to the DLL to convert a text string is:

U2dnet1.CodeTypeValue = 2         ' =2 for PDF417
U2dnet1.StartMode = 0
U2dnet1.Caption = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
barcode1.Text = U2dnet1.Barcode()

The barcode text has been copied to a TextBox (barcode1)


Adding to an Access Form or Report

To add the control to an Access Form or Report, open the form or report in Design view and ensure that the Toolbox is visible. Select the “More controls” icon on the Toolbox and then select the U2DOCX Active-X Control module from the list of controls displayed. Draw a rectangle for the control on the from or report.

Once added to a form or report, selection of the control will show the available properties in Access’s properties window. The font should be set by right-clicking on the control and choosing the U2docx control properties from the displayed menu.


Licensing

Each kit may be licensed as a single computer product or as a developer version which permits Royalty-free of the components for up to 10,000 distributions.

System requirements

Requires Microsoft Windows XP/2003/Vista/Windows 7. To obtain printed barcodes a Windows compatible printer is required. One of the tools provided must be used for conversion of data into a barcode.

The 32 bit components may be installed on either 32 or 64 bit systems. 64 bit components require a 64 bit operating system.

Except where otherwise stated, the .NET component is designed for use with Visual Studio 2005/.NET Framework 2.0 or later. Supports x32, x64 and IA64.


*Note: Testware versions randomly scramble characters, but otherwise provides a scannable barcode.
The fonts are not suitable for use without the one of the provided components to create the barcode.

All developer font products include an embedding licence so that fonts may be embedded into Acrobat pdf pages (see sample pdf document) or font objects created for embedding barcodes into web pages (see demo page).

View the Universal 2D Barcode Font kit help files - see the Home menu above.