IDAutomation.com, Inc.

Your Source for Quality Symbology

[IDAutomation.com Home Page]

 
Home:  Products:  Barcode Components:  Pocket PC DLL for Compact Framework:  Manual and Tutorial  

IDAutomation Barcode DLL for Pocket PC Manual & Tutorial

A license is required for each computer this software is installed on;
this software may only be used according to the License Agreement.

Our PocketPC DLLs allow easy integration or dynamic barcodes into PocketPC or Windows CE.NET Applications. They support several linear and two dimensional barcode symbologies

INDEX:

Pocket PC Tutorial

Using our controls is a simple 3 step process:


Step 1 - download and unzip the control package

Download and unzip the package. We suggest you place the DLL in a local directory such as C:\IDAutomation that is easy to remember.


Step 2 - using the control on your Smart Device

NOTE: This documentation refers to our Linear .NET Compact Framework control.
Please make the following substitutions if using this document for the PDF417 or DataMatrix Compact Framework controls:
    IDAutomaton.design.LinearBarcodeControl.dll = IDAutomation.design.PDF417BarcodeControl.dll
    IDAutomationCFLinear.dll = IDAutomationCFPDF417.dll
    IDAutomaton.design.LinearBarcodeControl.dll = IDAutomation.design.DataMatrixBarcodeControl.dll
    IDAutomationCFLinear.dll = IDAutomationCFDataMatrix.dll

There are two components necessary when creating an application for the .NET Compact Framework (CF). A design time component (IDAutomation.design.LinearBarcodeControl.dll), which can use all of the functionality of the full .NET Framework, and a run-time component (IDAutomationCFLinear.dll), which uses only functionality allowed by the Compact Framework. The two components can be found in the CompactFramework folder of the zip file that was downloaded. 

Before the controls can be used in your CF application, they must be placed in specific locations so that the Visual Studio IDE can find them. Once the DLL's have been copied to the correct locations, they can be referenced in your application. The following steps outline the process for setting up your environment to use our Compact Framework control.

  1. Copy the designer version of the control, IDAutomation.design.LinearBarcodeControl.dll, from the zip folder directory to "C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Designer". This is the location that the Visual Studio IDE looks for components for the Device Controls section of the Toolbox.
  2. Copy the run time version of the control, IDAutomationCFLinear.dll, to "C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\". This is the location where the Visual Studio IDE looks for the DLL that will be copied to the target device or PocketPC emulator.
  3. Add the control to a Smart Device Application project in Visual Studio.NET
  4. If the Toolbox is not visible in your application, select View | Toolbox from the main Visual Studio.NET menu
  5. Find the section in the Toolbox entitled Device Controls. Right click the Toolbox and choose Add/Remove Items. A screen similar to the figure below will appear:
    Selecting IDAutomation.design.LinearBarcodeControl.dll.
  6. Click the "Browse" button and navigate to the location where the designer version of the control was copied to, "C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\WindowsCE\Designer", select IDAutomation.design.LinearBarcodeControl.dll, click "Open", then click "OK" on the Customize Toolbox dialog.
  7. The control should appear on the Toolbox as illustrated below:
    Compact Framework Control in the Toolbox.
  8. Before dragging the control on to a form, a reference must be set to the run-time version of the control so that it is copied to the target device or emulator. This is done from Solution Explorer.  If Solution Explorer is not visible, click View | Solution Explorer. Right click "References" in Solution Explorer. Click "Add Reference".
    Set Reference for the runtime version of the DLL.
  9. On the Add Reference dialog click "Browse". Navigate to the location of the run time version of the control "C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE", select IDAutomationCFLinear.dll and click "Open". Click "OK" on the Add Reference dialog

The control is now available to be used in your Compact Framework application. The image below displays an example of a simple Compact Framework application for displaying barcodes on the Pocket PC. Consult your MSDN documentation for ways to print, save, and display the bitmap image associated with the Barcode Control for the Compact Framework.
Compact Framework application displaying barcodes on a PocketPC ...

Sizing the control:

The control cannot be sized manually because it must meet specific requirements, such as a precise X dimension (narrow bar width) and barcode height specified in the properties of the control. To increase the width, increase the XDimensionCM or XDimensionMILS property. To increase the height, increase the BarHeightCM property.

Printing from the control:

Dynamically placing the control on a form:

IDAutomation.CF.PDF417Barcode.PDF417Barcode pdF417Barcode2 = new IDAutomation.CF.PDF417Barcode.PDF417Barcode();
this.Controls.Add(pdF417Barcode2);

Copying barcodes to the clipboard:

Clipboard.SetDataObject(barcode1.BMPPicture);
IDataObject iData = Clipboard.GetDataObject();
pictureBox1.image = (Bitmap)iData.GetData(DataFormats.Bitmap); 

Step 3 - adjust the properties of the control

After you insert the control in your application as described in step 2, you may adjust the properties of the control. To do this, you can change the properties with program code or you can right-click on the control and choose Properties if it is installed on a form.

This section explains the main configuration parameters and methods of the control:

NOTE: Many of the barcode sizing parameters are calculated in CM (centimeters). Some barcode measurements are determined in "mils", which are 1/1000 of an inch. You may use the following rules for your conversions:

To convert mils to CM, multiply the mils value by .00254. For example, 12 mils * .00254 = .03 CM.
To convert CM to mils, divide the CM value by 2.54. For example, .03 CM / 2.54 = 11.8 mils.

To convert inches to CM, multiply the value in inches by 2.54.
Properties:

PDF417: Read the PDF417 FAQ for information about this symbology.
These properties are available only in the 2D version for idautomation.pdf417.dll. Related properties not mentioned here are the same as in the Linear Control.

Methods:

Data Matrix: Read the DataMatrix FAQ for information about this symbology.
These properties are available only in the 2D version for idautomation.cfdatamatrix.dll.  Related properties not mentioned here are the same as in the Linear PocketPC Control.

Methods:


Symbology specific notes

UPC-A, UPC-E, EAN-8 and EAN-13
Enter the data to be encoded without any spaces or dashes. You can enter the +2 and +5 add-on codes by just adding them to the end of the string. If the check digit is added, it will be ignored and regenerated to ensure that the code can be scanned. If you rotate the barcode by 270, you may need to increase the top margin. For UPC-E, you must enter the full 11 or 12 digit UPC-A code and the barcode will be compressed if possible.

POSTNET and PLANET
When using the POSTNET barcode, the XDimensionCM (Narrow Bar Width) of .05 CM should be used. For barcodes to be acceptable to the US post offices, they must be between 22 and 24 bars per inch. Setting the XDimensionCM to .05 should produce about 23 bars per inch. You should adjust this setting for your printer if your results are different.

Code 128
The "AUTO" setting for Code 128 will automatically switch character sets in the barcode as necessary. Our implementation of Code 128 auto has many options as described below:

UCC128
This symbology option encodes an even number of number digits and includes the FNC1 character in set C as required. Use Code 128 Auto to encode additional FNC1 codes or data containing text or odd numbers. Use the UCC128 function only for UCC-128 applications where the input data is an even number such as in SSCC-18 and SCC-14 barcodes. For example, to encode an SSCC-18 barcode, you would enter 00000123455555555558 as the data input. For more information, please visit here.


Technical support

To obtain technical support for this product, please visit the Dotnet Windows Forms Technical Support Site.


You may also view our product index to obtain a list of all products we offer.

 

 Product Links: [Barcode Fonts | Barcode Components | Barcode Label Software | Barcode Scanners]

Copyright © 2000-2006 IDAutomation.com, Inc. IDAutomation and BizFonts are registered trademarks of IDAutomation.com, Inc. All other trademarks mentioned are the property of their respective owners. 
 

Over 70% of Fortune 100 companies use our products to automate their businesses.