[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Microsoft Point of Service vb.net

Posted on 2015-01-19
2
Medium Priority
?
399 Views
Last Modified: 2015-01-24
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!!!
0
Comment
Question by:slightlyoff
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 40559127
I'll preface this by saying I haven't worked with that API before.

I can't figure out what strLogicalName is supposed to be or where it is defined.
According to the documentation:

Before you use GetDevice, logical names must be configured for the device by using either PosDm.exe or WMI. You cannot pass the service object name for logicalName.
0
 
LVL 1

Author Closing Comment

by:slightlyoff
ID: 40568464
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.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question