Solved

Microsoft Point of Service vb.net

Posted on 2015-01-19
2
290 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 74

Accepted Solution

by:
käµfm³d   👽 earned 500 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now