Link to home
Start Free TrialLog in
Avatar of slightlyoff
slightlyoff

asked on

Microsoft Point of Service vb.net

I'm trying to get a handle on using Microsoft Point of Service.

I have an Epson TI-20II connected to my computer via USB.  I have installed it and named it "Receipt"

I have this code in my application:

deviceInfo = posExplorer.GetDevice(DeviceType.CashDrawer, strLogicalName)
m_Drawer = posExplorer.CreateInstance(deviceInfo)

which comes from Epson's code examples.

I can't figure out what strLogicalName is supposed to be or where it is defined.
Earlier in my code, it's set up like this:

strLogicalName = "CashDrawer"
(since the application is trying to open the drawer through the receipt interface.)

I renamed the variable to Receipt to match the actual name of the printer.  But it's not working.
I've attached the sample program for what it's worth.

Any ideas on how I can connect to the printer/cash drawer?

Thanks for your help!!!
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slightlyoff
slightlyoff

ASKER

I couldn't figure out how to assign it a Logical name, I tried POSDM.EXE and WMI, but for some reason the device wasn't available after doing that. I've decided to just connect directly to the printer.

Thanks for your help.