Handheld c# barcode scan

  • Thread starter Thread starter Vi?ar ?lason via .NET 247
  • Start date Start date
V

Vi?ar ?lason via .NET 247

(Type your message here)

HI
I am writing program in C# for handheld windows CE and i need to know how to capture
barcode scan event . The user should never see the actual barcode but he should be able to scan
when ever he want to and i have to capture that scan(string) and put in some variable and then call suitable function.
I do not know much about this handheld and how it is initialize but there is no problem to capture scan in textbox
you just put focus on and scan!
need a littel help please
 
Vi?ar ?lason via .NET 247 said:
I am writing program in C# for handheld windows CE and i need to know how
to capture
barcode scan event. The user should never see the actual barcode but he
should be able to scan
when ever he want to and i have to capture that scan(string) and put in
some variable and then call suitable function.
I do not know much about this handheld and how it is initialize but there
is no problem to capture scan in textbox
you just put focus on and scan!
This depends on your device and your barcode scanner's driver software. Does
it raise an event or have its own message when a barcode is read, or does it
just generate keyboard input you cannot distinguish from hardware keys?
Without any documentation it will be very difficult to create software for a
device...

Marc
 
We are working with Intermec 700 Series Color Mobile Computer with build in
scanner. It is no problem to get input string from scanner in textbox on
form, but we need to read barcode and send it to database. User should not
see barcode.
 
Get the .NET SDK from the intermec website and install it.
There are examples on how to do this in the SDK, but to answer your
question now:

private Intermec.DataCollection.BarcodeReader barcodeReader;

//-------------------------------------------
// Your class (or form) constructor
//-----------------------------------------

// Create the barcodeReader instance
barcodeReader = new BarcodeReader();

// hook the bc read event
barcodeReader.BarcodeRead +=new
BarcodeReadEventHandler(barcodeReader_BarcodeRead);

// read continuously
barcodeReader.ThreadedRead(true);

//--------------------------------------------
// barcode readevent
//--------------------------------------------

private void barcodeReader_BarcodeRead(object sender,
BarcodeReadEventArgs bre)
{
// barcode read
string MyBarcode;

MyBarcode = bre.strDataBuffer;
// MyBarcode contans the read barcode..


}

//----------------------------------------------------
// On form close, do not forget to dispose the barcode reader.
//-----------------------------------------------------
private void DisposeBCR()
{
barcodeReader.Dispose()
}



Hope that helps,
Ronald.



Vi?ar ?lason via .NET 247 said:
(Type your message here)

HI
I am writing program in C# for handheld windows CE and i need to know how to capture
barcode scan event . The user should never see the actual barcode but he should be able to scan
when ever he want to and i have to capture that scan(string) and put
in some variable and then call suitable function.
I do not know much about this handheld and how it is initialize but
there is no problem to capture scan in textbox
 
Thanks this was exactly what we needed and its working fine ,, but now i have
another minor problem ,i cant debug if i have this feature on because i cant
put itcscan.dll on emulator i need it in windows folder . I can put some
other files on emulator but cant see the .dll when looking in Shared folder!
This is no major problem i can always turn off feature when i debug, but
it would be fine to know .And sure there where no probl. putting .dll on
Pocket Pc it self.

Get the .NET SDK from the intermec website and install it.
There are examples on how to do this in the SDK, but to answer your
question now:

private Intermec.DataCollection.BarcodeReader barcodeReader;

//-------------------------------------------
// Your class (or form) constructor
//-----------------------------------------

// Create the barcodeReader instance
barcodeReader = new BarcodeReader();

// hook the bc read event
barcodeReader.BarcodeRead +=new
BarcodeReadEventHandler(barcodeReader_BarcodeRead);

// read continuously
barcodeReader.ThreadedRead(true);

//--------------------------------------------
// barcode readevent
//--------------------------------------------

private void barcodeReader_BarcodeRead(object sender,
BarcodeReadEventArgs bre)
{
// barcode read
string MyBarcode;

MyBarcode = bre.strDataBuffer;
// MyBarcode contans the read barcode..


}

//----------------------------------------------------
// On form close, do not forget to dispose the barcode reader.
//-----------------------------------------------------
private void DisposeBCR()
{
barcodeReader.Dispose()
}



Hope that helps,
Ronald.



Vi?ar ?lason via .NET 247 said:
(Type your message here)

HI
I am writing program in C# for handheld windows CE and i need to know how to capture
barcode scan event . The user should never see the actual barcode but he should be able to scan
when ever he want to and i have to capture that scan(string) and put
in some variable and then call suitable function.
I do not know much about this handheld and how it is initialize but
there is no problem to capture scan in textbox
 
There is currently no Emulation version available. The only way to
debug your software is directly on your device.

Ronald.
 
Back
Top