bulb Barcode.dll barcode component FAQ

Show all | Hide all

Licensing

Single computer license

This license is valid for as many installations as you need on a single production machine.
You're allowed to install the component on any number of developer/test machines.
Number of single computer licenses limits the number of production machines only.
There is no developer limit that can work with the component.
You may not redistribute the component with this license.
Your company name is embedded in this license.

Product license

This license is valid for unlimited copies of a single application.
You're allowed to install the component on any number of developer/test machines.
There is no developer limit that can work with the component.
You may redistribute component as part of your application.
Your product name is embedded in this license.
You should use "License to" field during ordering process to enter your product name.

Ultimate license

This license is valid for unlimited copies of unlimited number of different applications.
You're allowed to install the component on any number of developer/test machines.
There is no developer limit that can work with the component.
You may redistribute component as part of your application.
  • Electronic delivery (licenses are generated automatically, you will receive them as soon as the payment is made).
  • License includes free email support and component upgrade for 12 months.
  • After the purchase you will receive the license file, which will unlock the trial version.Trial version can be downloaded in download section.
  • If you already purchased a license and would like to upgrade, please contact us with your previous order number for getting a coupon for the price you already paid.

Please visit buy component page for details on how to buy.

You need either Product license or Ultimate license.

Single computer license entitles you to install component on a single production machine (for example ASP.NET server), you are not allowed to redistribute the component with this license.

Yes, you're allowed to install the product on any number of developer/test machines.
Number of single computer licenses limits the number of production machines only.

Purchasing any product entitles you to 12 months of free maintenance of that product since the moment of purchase. The maintenance includes all major and minor updates released for that product during the year and the standard technical support.

The trial version is fully functional. It has the same features as the registered version.

The evaluation version of the component stamps all barcodes with the "Lesnikowski" watermark.

The evaluation version of the component displays "Please purchase the license" dialog.

Make sure that the "BarcodeLicense.xml" file is in the run folder of your application (AppDomain.CurrentDomain.BaseDirectory).

Please read the license tutorial for more details.

General

A barcode (also bar code) is a machine-readable representation of information in a visual format on a surface. Originally barcodes stored data in the widths and spacings of printed parallel lines, but today they also come in patterns of dots, concentric circles, and hidden in images. Barcodes can be read by optical scanners called barcode readers or scanned from an image by special software. Barcodes are widely used to implement Auto ID Data Capture (AIDC) systems that improve the speed and accuracy of computer data entry.
  1. Go to Barcode.dll demo page.
  2. Generate your barcode image
  3. Print it (File/Print...)
  4. Scan it with your reader

Note: some scanners need correct checksum to be added to the barcode. Use 'Add Checksum?' checkbox to add checksum to your barcode on the demo page.

All barcodes on the demo page are rendered as png files with 150dpi resolution. You may also choose 'Save As..' option, open saved image in Paint and print it. Paint will use the image resolution (150dpi) so barcode will appear smaller.

To see all barcode symbologies that Barcode.dll supports visit Barcode.dll symbologies page.

Yes, you can.
Yes, you can. Download package contains ASP example.
Yes, you can. Download package contains Crystal Reports example.
Yes, you can. Download package contains Visual Studio Local Reports (RDLC) example.
Yes, you can. It is very simmilar to using Visual Studio Local Reports (RDLC). However you might need some additional SQL Server Reporting Services configuration.
  • Barcode.dll is a .NET 1.1 assembly so it will work on .NET 1.1, 2.0, 3.0, 3.5 and 4.0
  • Barcode.dll was tested against Mono-2.4.2.3.
Yes, you can. Download package contains Gizmox Visual WebGui samples in VB.NET and C#.

Programming

If you want to display barcode in user interface use Windows control or ASP.NET control

When you are printing barcode labels, use appropriate barcode class, as it will be more efficient: First you have to add reference to Barcode.dll in your project (see MSDN How to).

C# code:

VB.NET code:

  1. Create new ASP.NET project
  2. Add new web.config file if you don't have one.
  3. Register HttpHandler in an ASP.NET web application - add the following code to your web.config file:

    Register an HTTP handler for IIS 6.0: Register an HTTP handler for IIS 7.0 running in Integrated Mode: Register an HTTP handler for IIS 7.0 running in Classic mode: Replace FrameworkPath with the correct path to the Aspnet_isapi.dll file.

    If you are using VS2003 use the following:

  4. If BarcodeControl is not present in the toolbox:
    • use the right mouse button on toolbox,
    • click 'Choose items...' or 'Add/Remove Items'
    • Find 'BarcodeControl' on '.NET Framework Components' tab or click 'Browse' and point 'Barcode.dll' file
  5. Drag and drop BarcodeControl from toolbox to your webpage. This will add the reference to Barcode.dll to your project.
  1. Create new WindowsForms project
  2. If BarcodeControl is not present in the toolbox:
    • use the right mouse button on toolbox,
    • click 'Choose items...' or 'Add/Remove Items'
    • Find 'BarcodeControl' on '.NET Framework Components' tab or click 'Browse' and point 'Barcode.dll' file
  3. Drag and drop BarcodeControl from toolbox to your Windows Form. This will add the reference to Barcode.dll to your project.

On Windows or ASP.NET controls just use XDpi and YDpi properties.

When generating barcode without controls use following code:
Some scanners may need more free space before and after the barcode. This section explains how to change this quiet zones programatically.
The lines at the top and the bottom of the barcode are called "bearer bars" and are used to prevent something called a "short scan." The bearer bars insure that only complete scans will return a valid read.

In 2008 version of the Reporting Services you need to add additional privileges to the code using Barcode.dll.

For preview mode you need to edit the following file: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ RSPreviewPolicy.config For a deployed report you need to edit the following file: C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\ rssrvpolicy.config

Find the CodeGroup with the Report_Expressions_Default_Permissions name:

Now change the: PermissionSetName="Execution" to: PermissionSetName="FullTrust"

If you already own the license put the license file (BarcodelLicense.xml) in appropriate folders: In preview mode license file is loaded from: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ When deployed license file is loaded from: C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer\

In case of preview you just need to run the report again. In the output window you shouldn't see any SecurityExceptions (A first chance exception of type 'System.Security.SecurityException' occurred in mscorlib.dll)

In case of deployed report please remember to restart ReportServer ("SQL Server Reporting Services (MSSQLSERVER)") service.

ASP 3.0, C++, VB

Create Barcode.asp file with the following content:

Very important... this is the WHOLE code for the page... if you keep the html tags and doc content it will not work. This way, it outputs and converts the binary stream of the Rendered barcode and displays it as a gif.

I can now use it this way: from any other page.

Special thanks for the code to Yendi N. Gómez Bouchot.

You can use Barcode.dll from unmanaged code as a COM object:

C++ code:

VB code:

Common problems

Right-click on the Barcode.dll and check for the following security message:
This file came from another computer and might be blocked to help protect this computer.

If present, click "Unblock", "Apply" and "OK".

Please perform the above procedure on:

            c:\program files\lesnikowski\barcode\redistributables\Barcode.dll
          
and on all instances of Barcode.dll you have in your solution folder.

Please remeber to restart IIS server afterwards.

If a barcode control is placed on the publically visible page (allow users="*") which is located in a folder that has (deny users="*") attribute, barcode image won't be displayed.

This is because, barcode control is using an http handler for generating images. It allows generating images on the fly without temporary files. The handler name is Barcode.axd and it needs to be added to the web.config with (allow users="*") attribute.

Please add the following code to the 'web.config' file into 'configuration' section:

If you are using 2.0 version try the following:
  1. You need to install version 2.0 of the .NET framework (3.0+ versions are not enough). You can download it here: Framework 2.0
  2. If you did not install the component using the windows installer setup, download windows installer file from download section and install it (be sure to have 'COM support' option checked).
If you are using 1.0 version try the following:
  1. You need to install version 1.1 of the .NET framework (2.0+ versions are not enough). You can download it here: Framework 1.1
  2. If you did not install the component using the windows installer setup, download windows installer file from download section and install it (be sure to have 'COM support' option checked).

Other

In case of other problems, feel free to write.
First please provide answers to this questions:
  • What language are you using?
  • Which Visual Studio version are you using?
  • Which .NET Framework version are you using?
  • Is it console, windows forms, windows service or web application?
  • If it is possible please attach source code of your project (zipped).
Just use our contact form.
 
Products > Barcode.dll barcode component > Barcode.dll barcode component FAQ