views:

2216

answers:

3

Has anyone used Epson OPOS ADK for .NET for windows 7. i tried to install windows vista drivers on windows 7, since there are none available for windows 7, but it did not work. Please share any suggestions or ideas that might have worked for you. I am using a TM-88IV receipt printer

A: 

It might be easier to use a generic text printer driver. Some of those specific OPOS drivers hog up CPU resource (either they are buggy or badly written). By using a generic text printer driver, you can send escape sequences to the printer to control the formatting as the printer uses the Epson ESC2 code sequences.

By the way, I guess the cash drawer is plugged into the back of the printer yes? Again, by using the generic printer driver, you can send a specific ESC control codes to it and the drawer should kick out - It may not be relevant to the question but thought I'd include that.

In light of this, it would be worth your while to check out Microsoft's POS kit for .NET which will make your life easier, this SDK sits on top of the OPOS drivers and you have the classes, methods, properties in the .NET World.

Hope this helps, Best regards, Tom.

tommieb75
thanks a lot tommieb75. Yes i'll be using a cash drawer attached to the printer. Could you redirect me to some samples for using ESC2 codes in vb.net. I'm kinda new in this domain. Once again, thanks a lot for your time
Xience
Also what if i used Epson's APD driver and used its Status and Devmode APIs for communicating with driver. I failed to find any code samples for using ESC2 codes using vb.net.
Xience
@Irfnldrees: Epson should have on their website the codes neccessary to do this. Microsoft's POS Kit, in fact, will do all of this for you without worrying about the specific information such as escape codes etc and it is very comprehensive, for instance, there's a class you instantiate in a particular way, called Microsoft.PointOfService.CashDrawer, and one of the methods is called 'OpenCashDrawer'. Simple really. Download it and it will make life easier for yourself! Coupled with generic Text Printer driver, you have it all! :) Feel free to ask any further questions.
tommieb75
A: 

As Tom says, if you're are writing a .NET POS, you should probably be using Microsoft POS for .NET as the OPOS interface.

I use it in Vista on my development machine, so I imagine it would work in Windows 7 as well.

If you can't install some particular driver in Windows 7, then that would not really be very surprising. I doubt there are any Vista or Windows 7 POS machines out there yet.

One thing you could do in that case--where you can't get a driver to work on a development machine--would be to use the device simulators that come with POS for .NET. They are kind of poor (for instance, the printer simulator doesn't do any formatting) but they are better than nothing. I can't recall just now if they come with a cash drawer simulator. It wouldn't take you long to download it and find out though.

dangph
+1  A: 

I have the exact same setup as you. Running Windows 7 and have an EPSON TM-T88IV installed via USB. I also have a cash drawer plugged into the back of the printer. I have tried various combinations of drivers and POS platforms. At the moment I have Microsoft's POS for .NET and EPSON's OPOS ADK for .NET installed. Using these I still cannot see my printer in my application. Apparently you have to use an app provided called SetupPOS which crashes as soon as you try and run it. Ideas?

nicgordon
Are you running Windows 7 64-bit? A .net application will run as a 64-bit program on a 64-bit OS. And the POS.net driver from Epson is 32-bit only. When the setpos program runs it runs as 64-bit, which does not work. You can make it work by forcing it to run as a 32-bit program. This is done with the corflags program in the .net sdk.C:\Program Files (x86)\EPSON\OPOS for .NET\SetupPOS>corflags /32BIT+ Epson.opos.tm.setpos.exeWith this I get the setup program to work. I don't know if printing actually works, as I do not have a printer available at the moment.
Jan Obrestad
I haven't actually tried this solution but yes I am running the 64bit version. Thank you for letting me know. I opted instead to just use the 32bit XP machine beside me for testing :)
nicgordon
I take that back. I did just test it and it worked a treat! Thank you very much. I didn't have the .NET SDK installed however so for anyone looking for just the corflags exe it can be found here: http://www.apexsql.com/zips/CorFlags.zip
nicgordon