Using the Barcode Demos

This document describes how to use the basic features of the "LEADTOOLS Barcode Demos".

You will find the following features in the Barcode demos:

1.

The ability to save your image to any output file format supported by LEAD Technologies, Inc.

2.

Support for reading and writing different types of barcodes.

3.

The ability to save the results obtained from reading barcodes into a Log file.

4.

Support for Twain and ISIS scanning

5.

The ability to write different barcodes using different colors.

LEAD also includes two step-by-step tutorials for reading barcodes and writing a barcode using this demo. For more information on these, refer to Reading Barcodes Using the Barcode Demo and Writing Barcodes Using the Barcode Demo.

The barcode demos demonstrate the Barcode toolkit features. They let you read several barcode types from an image, or write barcodes over an image using different options.

Supported Image Formats

The LEADTOOLS Barcode toolkit supports all image file formats supported by LEADTOOLS.

Getting Started with the LEADTOOLS Barcode Demos

To start a LEADTOOLS Barcode Demo, you can do one of the following:

1.

Select "Start" -> "Programs" -> "LEADTOOLS Raster Imaging Pro 14.0" -> "Extensions" -> "Barcode" -> "ActiveX" or "API" or "C++ Class Library" and click on the desired demo, as shown below.

 

Please note that your exact path may vary, depending on the toolkit you have installed.

 

image\GettingStarted.gif

OR

2.

Double click on one of the .EXE files listed below. These .EXE files can be found in the LEAD/Bin directory, where LEAD represents the directory in which you installed the toolkit.

image\sqrblit.gif MFCBar32.exe

image\sqrblit.gif ClBar32.exe

image\sqrblit.gif VBBar32.exe

image\sqrblit.gif OCBar40.exe

Barcode API Demo – Main Window

The following displays the Main Window for the "Barcode ActiveX MFC Demo", the "Barcode API MFC Demo" and the "Barcode Class Lib Demo":

image\BarcodeMainWindow1.gif

The following displays the Main Window for the "Barcode ActiveX VB Demo" and the "Barcode API Demo":

image\BarcodeMainWindow2.gif

Menus

The LEADTOOLS Barcode Demo contains the following menus:

image\sqrblit.gif File Menu

image\sqrblit.gif Edit Menu

image\sqrblit.gif Actions Menu

image\sqrblit.gif Window Menu

image\sqrblit.gif Help Menu

Click on each menu for more detailed information.

File Menu

image\FileMenu.gif

 

This menu contains the following items:

New: Creates a new image. This option is available only in the "Barcode API MFC Demo", the "Barcode ActiveX MFC Demo" and the "Barcode Class Lib Demo". The new image is created using the width and height specified in the dialog shown below:

image\FileNew.gif

Open: Opens an image in which to find existing barcodes or write new barcodes.

Close: Closes the active child window.

Save As: Saves the active image to a physical file.

TWAIN Select: Selects a TWAIN source using the following dialog:

image\TwainSelect.gif

TWAIN Acquire: Opens the TWAIN source user interface to acquire barcode images.

ISIS Select: Selects an ISIS source using the following dialog:

image\IsisSelect.gif

ISIS Acquire: Opens the ISIS source user interface to acquire barcode images.

Exit: Ends the application.

Edit Menu

image\EditMenu.gif

 

This menu contains the following items:

Copy: Copies the active image to the clipboard.

Paste: Pastes the clipboard contents to a new child window.

Actions Menu

image\ActionsMenu.gif

 

This menu contains the following items:

Read: Brings up the Read Options dialog. This dialog is used to set the search criteria used when searching for barcodes in the active window. For more information, please refer to Read Options Dialog.

Write: Brings up the Write options dialog. This dialog is used to set the write criteria used when writing a barcode over the active window. For more information, please refer to Write Options Dialog.

Duplicated Info: Brings up a sub menu for finding the duplicated barcodes in the active window. The following shows the sub menu:

image\FindDup.gif

This sub menu contains the following items:

Get First: Brings up the Duplicated Index dialog, shown below. This dialog is used to enter the index for the barcode, for which to find a duplicate.

image\DupIndx.gif

If the barcode toolkit finds a duplicated barcode, then the demo will display the information for the duplicated barcode as shown below. Otherwise, the demo will bring up an error.

image\BarcodeInfo.gif

Get Next: Finds the next duplicated barcode, if one exists. Otherwise, the demo will bring up an error.

The following menu items are available only in the "Barcode API MFC Demo" the "Barcode ActiveX MFC Demo", and the "Barcode Class Lib Demo":

Set Log File: Brings the Set Log File Name dialog. This dialog is used to set the path for the Log File. When barcodes are read, the results are placed in this file. The following shows the dialog:

image\LogFile.gif

Open Log File: Opens the Log File. This menu item is enabled only after the setting a log file in using the Set Log File menu item and reading the barcodes. Selecting this menu item displays the Log File, as shown below:

image\OpenLogFile.gif

Window Menu

image\WindowMenu.gif

 

This menu contains the following items:

Close All: Closes all child windows.

Cascade: Arranges all child windows in cascade style.

Tile: Arranges all child windows in Tile style.

Arrange Icons: Arranges all child windows as icons.

Help Menu

image\HelpMenu.gif

 

This menu contains the following item:

About: Brings up the About BarDemo dialog, shown below.

image\About.gif