Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Datalogic MDA ReadMe First

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

Datalogic Mobile Developer Assistant Readme

Products Involved: Datalogic Mobile Developer Assistant

Description: This readme has the purpose to illustrate the contents of the package “Datalogic Mobile Developer Assistant version 3.x”.

Date: November 2014


___________________________________________________________________________________

1. PACKAGE CONTENT
 Datalogic Mobile Developer Assistant – help file

 Datalogic Mobile Developer Assistant Installer for Visual Studio 2008

 Datalogic Mobile Developer Assistant Installer for Visual Studio 2005

 Datalogic Mobile Developer Assistant manual installation for Visual Studio 2008

 Datalogic Mobile Developer Assistant manual installation for Visual Studio 2005

 This readme file.


2. PACKAGE DESCRIPTION
 Datalogic Mobile Developer Assistant – help file

This help file is the reference documentation for the Datalogic Mobile Developer Assistant release 3.x.

 Datalogic Mobile Developer Assistant Installer for Visual Studio 2008

Datalogic_MDA_VS2008.ms: install Datalogic Mobile Developer Assistant release 3.x. if you have Visual Studio 2008.

 Datalogic Mobile Developer Assistant Installer for Visual Studio 2005

Datalogic_MDA_VS2005.msi: install Datalogic Mobile Developer Assistant release 3.x. if you have Visual Studio 2005.

 Datalogic Mobile Developer Assistant manual installation for Visual Studio 2008

manual_installation_vs2008.zip: use it only in case of automatic installation failure.

 Datalogic Mobile Developer Assistant manual installation for Visual Studio 2005

manual_installation_vs2005.zip: use it only in case of automatic installation failure


PART1: INSTALLING DATALOGIC MOBILE ASSISTANT 3.x

STEP 1.1: REMOVE PREVIOUS DATALOGIC MOBILITY KIT VERSIONS

 Open ControlPanel->Add/Remove Programs


 Remove “Datalogic Mobility Kit Samples for Visual Studio 2005” (if present)
 Remove “Datalogic Mobility Kit for Visual Studio 2005” (if present)
STEP 1.2: CLEAN OLD COMPONENTS IN VISUAL STUDIO TOOLBOX (only if older MDA versions were installed)

 Create a new SmartDevice C# project with Visual Studio


 Go in “Toolbox” window, right click on Datalogic components and select “Delete”
STEP 1.3: INSTALL DATALOGIC MOBILE DEVELOPER ASSISTANT 3.x
 Launch DatalogicMDA_VS2008.msi contained in MDA 3.x installation packet if you have Visual Studio 2008 installed or launch
DatalogicMDA_VS2005.msi contained in MDA 3.x installation packet if you have Visual Studio 2005 installed
 Follow the installation procedure
 Verify that Datalogic Mobile Developer Assistant 3.x is correctly installed through the next part (PART2: DEVELOPING A SIMPLE LASER
SCANNER APPLICATION)
 In case automatic installation fails, you can refer to the manual installation procedure contained in the Datalogic Mobile Developer Assistant
installation packet.
PART2: DEVELOPING A SIMPLE LASER SCANNER APPLICATION
This procedure shows some basic steps for developing an application able to manage laser scanner with Datalogic Mobile Assistant and Microsoft
Visual Studio 2008.

STEP 2.1: CREATE A VISUAL C# SMART DEVICE PROJECT

 Open Visual Studio 2008


 File->New Project
STEP 2.2: SET “WINDOWS CE” AS “TARGET PLATFORM”

 Select Windows CE from the Target Platform list box


STEP 2.3: INSERT A LASER COMPONENT FROM THE TOOLBAR ON FORM1

Open the “Toolbar” window, select Laser from “Datalogic” controls and drag the component in Form1
STEP 2.4: INSERT BUTTON AND EDIT BOX IN FORM1

 Drag Button and Text Box components from “All DeviceControls” to Form1
STEP 2.5: INSERT LASER MANAGEMENT CODE IN FORM1 SOURCE

 Add Laser1.GoodReadEvent and Enable Scanner in Form1 (see red rows)


 Call PressTrigger on Button1_Click to activate the scanner
 Manage GoodReadEvent and display the barcode in TextBox1
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
laser1.GoodReadEvent +=new datalogic.datacapture.ScannerEngine.LaserEventHandler(laser1_GoodReadEvent);
laser1.ScannerEnabled = true;
}

private void button1_Click(object sender, EventArgs e)


{
laser1.PressTrigger();
textBox1.Text = "";
}

private void laser1_GoodReadEvent(datalogic.datacapture.ScannerEngine sender)


{
textBox1.Text = laser1.BarcodeDataAsText;
}

}
STEP 2.6: DEBUG OR DEPLOY APPLICATION ON A WINDOWS CE DEVICE

 Connect the device via ActiveSync


 Start Debugging application.
STEP 2.7: DEPLOY THE APPLICATION

 Create a new Project (LaserAppInstaller) (Smart Device CAB Project).


STEP 2.8: ADD SmartDeviceProject1 TO LaserAppInstaller Solution

 Right click on solution and select “Add”-> “ Existing Project”


 Select SmartDeviceProject1 to add it
STEP 2.9: ADD SmartDeviceProject1 as Project Output

 Right click on LaserAppInstaller and select “Add”-> “Project Output”


 Select SmartDeviceProject1 to add it
STEP 2.10: Generate LaserAppInstaller.cab

 Right click on LaserAppInstaller and select “Build”


STEP 2.11: INSTALL CAB ON THE DEVICE AND RUN APPLICATION

 Copy LaserAppInstaller.cab on the device via Activesync


 Install LaserAppInstaller.cab on the device (double click)
 Launch application from \ProgramFiles\LaserAppInstaller directory
 Click button1 to read barcodes
PART3: MIGRATING APPLICATIONS DEVELOPED WITH OLD MDA

Here are some recommendations in case you want to migrate applications developed with older Mobile Developer Assistant versions for Visual
Studio 2003/2005.

STEP 3.1: REMOVE ALL REFERENCES TO REMOVED COMPONENTS

Compared to older Mobile Developer Assistant versions, some components were removed.

So, if your applications are using these components, you need to remove all the references to them.

This is the list of the removed components, as opposed to older Mobile Developer Assistant versions:

 datalogic.gsm
 datalogic.datacapture.DLTextBox
 datalogic .datacapture.Redirector
 datalogic.datacapture.RFID
 datalogic.device.Beeper
 datalogic.wireless.WirelessParams
STEP 3.2: Migrating a project from VS2005 to VS2008

 Open the VS2005 project with VS2008 and the automatic converter will migrate the project to VS2008.
 Go to the “Solution Explorer” window and change all the references to VS2005 Datalogic components as indicated below:
o bluetooth->bluetooth2008
o datacapture->datacapture2008
o device2005->device2008
o keyboardremapping2005->keyboardremapping2008
o powermanag2005->powermanag2008
o wireless2005->wireless2008
Remove references to VS2005 components: open “References” from the SolutionExplorer window, right click the component and select “Remove”
Add references to VS2008 components: right click on “References” from the SolutionExplorer window and select “Add Reference…”
From “Browse” Tab, go to \Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE and select “Datalogic VS2008
components”.

Click OK to add the selected component.

You might also like