School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,165 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 3,940 people online right now. Registration is fast and FREE... Join Now!



Barcode Scanning issue

Barcode Scanning issue

#1 moni123  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 3
  • Joined: 27-March 09


Dream Kudos: 0

Posted 27 March 2009 - 05:22 AM

Hi friends,

I am using EMDK V2.1 for symbol devices for developing an
application in MC70 device in CF 3.5 C#
I want to append Enter keystroke after each barcode scan programatically. I searched a lot regarding this issue.Can anyone
give me some suggestion. Symbol.dll and Symbol.barcode.dll
I am using in my code. But I have not found any method or property to
append Enter keystroke after the barcode scan.

Thanks in advance for any help..
Was This Post Helpful? 0
  • +
  • -


#2 maj3091  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 27
  • Joined: 26-March 09


Dream Kudos: 0

Posted 27 March 2009 - 07:05 AM

Hi,

Is it something you need to programmatically?

Normally you would append the carriage return in the scanner settings in the device (Scan suffix).

If it is programmatically, then could you not just append the carriage return to the text returned from the scanner in the ReadNotify event?

If you are already using the Symbol DLL's then you must be implementing something to get the text stream from the scanner.

Mark

This post has been edited by maj3091: 27 March 2009 - 07:21 AM

Was This Post Helpful? 0
  • +
  • -

#3 moni123  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 3
  • Joined: 27-March 09


Dream Kudos: 0

Posted 27 March 2009 - 11:59 PM

View Postmaj3091, on 27 Mar, 2009 - 07:05 AM, said:

Hi,

Is it something you need to programmatically?

Normally you would append the carriage return in the scanner settings in the device (Scan suffix).

If it is programmatically, then could you not just append the carriage return to the text returned from the scanner in the ReadNotify event?

If you are already using the Symbol DLL's then you must be implementing something to get the text stream from the scanner.

Mark


Hi maj3091,

Thanks for your reply.Using the Symbol DLLs I am not getting where exactly to specify the Scan Suffix.
If you have some idea please suggest me.
In the ReadNotify event I am getting the scanned data but if I append carriage return to this data and assign it in
a TextBox some symbol(a square) appears in that TextBox(that is for carriage return \r ) . If I am wrong pls correct me.I need to fire Enter Keystroke after
the scan since I want to call some function on that event.
Was This Post Helpful? 0
  • +
  • -

#4 maj3091  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 27
  • Joined: 26-March 09


Dream Kudos: 0

Posted 29 March 2009 - 11:57 PM

Hi,

As I said in my previous post, the easiest place to add it would be on the scanner itself.

In the scanner options on the device, you will be able to specify a suffix to be appended, which is the way I've normally done it in the past with other devices (Intermec, Psion and Symbol).

Do you need to do it using the DLL's or is the scanner method above suitable for you???

If you need to do it programatically, then you would probably need to capture the textbox keypress event and look for the carriage return character to action the function you want to.

Hope that helps.

Mark
Was This Post Helpful? 1
  • +
  • -

#5 moni123  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 3
  • Joined: 27-March 09


Dream Kudos: 0

Posted 31 March 2009 - 07:45 AM

Thanks for your help and valuable suggestion.
I also feel it should be done in the scanner lavel.
how ever as per the company requirement i managed to
call the keydown event of the form by passing key.Enter
as KeyEventArgs just after assigning the scanned data to the textbox.
Was This Post Helpful? 0
  • +
  • -

#6 maj3091  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: Members
  • Posts: 27
  • Joined: 26-March 09


Dream Kudos: 0

Posted 31 March 2009 - 11:03 PM

View Postmoni123, on 31 Mar, 2009 - 07:45 AM, said:

Thanks for your help and valuable suggestion.
I also feel it should be done in the scanner lavel.
how ever as per the company requirement i managed to
call the keydown event of the form by passing key.Enter
as KeyEventArgs just after assigning the scanned data to the textbox.


No problem, as developers we often have to work to other peoples requirements, no matter how obscure they are ! :)

I'm glad you solved your problem.

Mark
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month