Open cash drawer

I trying to use receipt printer (Star TSP100) connected to cash drawer. its print Ok , but I can't open cash drawer.
khaled salemSoftware DeveloperAsked:
Who is Participating?
 
olmyCommented:
I'm guessing, that you will find correct parameter from "Peripheral Unit 1:"-option and clicking "No Use" setting will probably reveal "Open after printing" value or something similar.

Unfortunately I don't have TSP100 printer on site and Windows 7 dosen't show disconnected devices drivers, so I cannot check this my self.

I hope this helps :)
0
 
Sinisa VukCommented:

If you use com port component send following string:

#27+#112+#48+char(30)+char(30)

where 30 is half-period of square signal.

0
 
khaled salemSoftware DeveloperAuthor Commented:
The cash drawer is not connected directly to my PC.The Cash drawer connect via printer (STAR TSP100) after print it should be opened.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Sinisa VukCommented:


Concatenate strings and send to printer:
...
s := <text to print> + <open drawer string>;
SendToComPort(s);
...

Printer will do rest.
0
 
olmyCommented:
If you are using TSP100 as a normal windows printer, you can define drawer to open automaticly in printer properties "Device settings"-page, by setting "Open after printing"-value into "Cash Drawer 1" parameter.

See the embedded image below.
Screencapture of printer properties
I hope this helps.

Best regards
  Janne
0
 
khaled salemSoftware DeveloperAuthor Commented:
Yes, I'm using using TSP100 as a normal windows printer. but i didn't find this setting. as you see in attached image    
tsp.png
0
 
Sinisa VukCommented:

It is possible that you want to print without to open drawer. So upper solution is not ideal.
Try to send esc characters (and text) to open drawer with this function:

http://www.swissdelphicenter.ch/torry/showcode.php?id=716

0
 
khaled salemSoftware DeveloperAuthor Commented:
olmy: Thank you very much, I've installed version 2.4 driver for TSP. I've found Open after print
0
 
olmyCommented:
Excellent! I'm glad that you found a sollution to your problem and thank you for accepting my answer :).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.