Home Products Demos Support Integration Barcode FAQ Order Now Contact Us

 

Home:  Products:  Barcode Components:  Windows Mobile Barcode DLL:  User Manual and Tutorial:
 

Barcode DLL User Manual & Tutorial for Windows Mobile,
Pocket PC, Windows CE .NET & the Microsoft Compact Framework
 

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

IDAutomation's Windows Mobile DLLs allow integration of dynamic barcodes into Windows Mobile, PocketPC or Windows CE.NET Applications using the Microsoft Compact Framework. They support several linear and 2D barcode symbologies including UPC, EAN, Code 128, Code 39, PDF417 and Data Matrix.

INDEX:

 Environment setup & tutorial

This documentation refers to IDAutomation's Linear .NET Compact Framework DLL. Please make the following substitutions if using the PDF417 or DataMatrix components:

 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 following steps outline the process for setting up the environment to use the Compact Framework control:

  1. Copy the runtime and designer versions of the controls to the project directory. Do not copy the files to the BIN directory, they will be automatically copied there when deployed.
  2. Open the Smart Device Application project in Visual Studio.NET. If a current project does not exist, open the image generator sample project included in the downloaded zip file.
  3. If the Toolbox is not visible in the application, open the form the control is to be placed on and select View | Toolbox from the main Visual Studio.NET menu.
  4. 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.
  5. Click the "Browse" button and select the designer version of the control, IDAutomation.design.LinearBarcodeControl.dll, click "Open", then click "OK" on the Customize Toolbox dialog. The control should appear in the Toolbox, do not place the control on the form yet.
    The IDAutomation Compact Framework Control should appear in the Toolbox.
  6. Before dragging the control on 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 control.
  7. On the Add Reference dialog click "Browse", select the runtime version of the control IDAutomationCFLinear.dll and click "Open". Click "OK" on the Add Reference dialog.
  8. The control should now available to the Compact Framework Application.

 Using the component

Printing from the control:

The .NET Compact Framework does not include native support for printing from a Windows Mobile device. In order to print from one of these devices, clients will need to use the Windows CE API, or a third party component specifically designed for printing from a Windows Mobile device such as the HP Windows Mobile Printing products.

IDAutomation has created a generic sample application available in this product that illustrates how to print a barcode image and text from a Windows Mobile device using the Windows CE API. However, the use of this API in this sample application is currently problematic on most devices. Therefore, it is currently only an example of how the printing should work. At this time we recommend using a 3rd party printing component to perform the printing functionality such as the HP Windows Mobile Printing products.

Before opening the sample project, please read the following notes regarding the application and the Compact Framework:

Placing barcodes in a PictureBox:

Dynamically placing the control on a form:

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

 Adjusting properties of the component

After inserting the control in the application, properties of the control may be changed. To do this, change the properties with program code or right-click on the control and choose Properties if it is installed on a form.

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.

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

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. Use the following rules for assistance with 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.cfpdf417.dll.

Data Matrix: Read the DataMatrix FAQ for information about this symbology.
These properties are available only in the 2D version for idautomation.cfdatamatrix.dll.


Technical support

Free product support may be obtained by reviewing articles that are documented at IDAutomation's support site and by searching the resolved public help desk issues. Priority phone, email and help desk support is provided up to 30 days after purchase. Additional priority phone, email and help desk support may be obtained if the Priority Support and Upgrade Subscription is active.

NOTE: At this time IDAutomation cannot troubleshoot printing problems, these should be directed to the appropriate vendor that makes the mobile printing component or contact Microsoft for support if the Windows Mobile API is being used to print.


View IDAutomation's product index to obtain a list of all products IDAutomation offers.

 

To sign up for monthly updates about new products or upgrades, please click here.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.