?
Solved

Microsoft Point of Service vb.net

Posted on 2015-01-19
2
Medium Priority
?
366 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

771 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