Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Star Reciept printer to open cash drawer


Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2008, 04:55 PM
Neemo Neemo is offline
Newcomer
 
Join Date: Nov 2007
Posts: 2
Default Star Reciept printer to open cash drawer


Hi Guys,

I am having some trouble at the moment, basically i have a star tsp100 (143 model) receipt printer which is connected via usb to the computer, the problem is i am tryin to open the cash drawer through the escape codes using vb and access 2000 but both of them i am having no look, i have previously used an epson tm88iv printer connected to the pc via a parralel port which worked fine everytime i clicked the button in my porgramme it run the code with the escape code and opened the drawer but how can i do it with the star printer and how can i do it using usb. with the epson it was a parrallel port to so open it i used lpt1 but what do i need to use for the usb and will i need to use the mscomm port because the pc recognises the usb port as a com port?? please help guys its pulling me hair this thing.

Thanks

Regards

Neemo
Reply With Quote
  #2  
Old 03-10-2008, 05:07 AM
mkaras's Avatar
mkaras mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

Neemo:

You will have to check if indeed the Star TSP100 printer appears as a COM port. Do this by opening the Device Manager and looking in the "Ports (COM & LPT)" section. If you see a COM port appear when the printer is plugged in and then go away again after the printer is removed then you can be sure that the printer uses a virtual COM port to support its communications.

If indeed a COM port is used the Device Manager will give you the port number to use and then within your VB program you will use the MSComm control to support communicating to the printer.
Reply With Quote
  #3  
Old 03-10-2008, 04:23 PM
Roger_Wgnr's Avatar
Roger_Wgnr Roger_Wgnr is offline
CodeASaurus Hex

Forum Leader
* Expert *
 
Join Date: Jul 2006
Location: San Antonio TX
Posts: 2,427
Default

To add into this discussion as I work with Receipt printers on my job it is possible that the TSP100 printer is an OPOS printer in which case you will need to interface with the OPOS drivers. We have developed interface OPOS drivers taht we use to link to several OPOS printers but you should be able to call the drivers proivided with the printer through code.
__________________
Code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. ~Martin Golding
The user is a peripheral that types when you issue a read request. ~Peter Williams
MSDN Visual Basic .NET General FAQ
Reply With Quote
  #4  
Old 03-10-2008, 07:20 PM
mkaras's Avatar
mkaras mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

I took a look in this printer's manuals and it appears that the vendor has indeed made a generic API type interface available. It may be an OPOS layer if I recall correctly. From the manual it seems that they may also have a virtual comm port for lower level access as well but I did not look in Programmers guide to see just how that worked. Both of these manuals, hardware and programmers, can be seen at the Star Micronics web site and they also permit one to download this 15or 20 MByte ZIP file with a whole bunch of stuff in it including some DLLs and I also saw a sample VB6 project that shows how to operate the cash drawer interface via one of the DLLs.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->