Ok...so this seems like it should be a super simple - I need to disable a symbol barcode scanner, do some work and then re-enable the scanner.
I have a scanner class which works fine so I tried the below code in my item look-up class
private Symbol.Barcode.Reader MyReader = Scanner.GetMyReader;//gets the reader
.....
......
private method()
{
MyReader.Actions.Disable();
...do some work here
MyReader.Actions.Enable()
}
The problem with the above code is the reader never seems to re-enable, esp. the laser light never comes back on and the read notify event never fires again.
I also tried MyReader.ReadNotify -= MyReader_ReadNotify; and then adding it back but this doesn't work either as the scanner still builds scan events when the scan button is hit.
I did try MyReader.Actions.Read(MyReaderData), this fired the read event again and still did not enable the scanner.
Is there something I need to add after MyReader.Actions.Enable() ?
I have searched for hours with no luck on this problem.
Thanks