Click here to Skip to main content
15,886,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to connect devices(Cash drawer,Printer) without logical name using pos.net. I am using below code
DeviceInfo POSDevice = posExplorer.GetDevice(DeviceType.CashDrawer);

It show error 'object reference not set to be instance of an object'

when i sued the below code then it works fine

DeviceInfo POSDevice = posExplorer.GetDevice(DeviceType.CashDrawer, "CD1_1");

Please let me know how i can rectify this problem.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900