Solved

Microsoft Point of Service vb.net

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

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…
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.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

691 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