Solved

Directly two receipt printers

Posted on 2011-03-24
7
946 Views
Last Modified: 2013-12-24
Currently Im making POS system with Coldfusion.
I don't know whick one is better either usb receipt printer or network.
One will be on the front desk. The other is in the kitchen
 When I click the button, contents print out directly to both locations.

Which one is better(usb or network)? What brand do you recommend?

What is coldfusion code?

Thank you.
0
Comment
Question by:wannabemaster
[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
7 Comments
 
LVL 36

Accepted Solution

by:
SidFishes earned 167 total points
ID: 35207008
Because of security features built in to browsers, printing to printers without a printer dialog (which is what I assume you are looking for) is not possible in native CF code. You will need to find a java object or activex

You could try the IE method outlined here (but I'm guessing that was a security hole which has since been fixed
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:32408

You could use something like this http://www.acrotex.net/printers/ to monitor a folder for pdf's which you generate with cfdocument

You might be able to work something up with vbScript and cfexecute

As for receipt printers, We use Epson TM-88's here and have for years. Very reliable and fast

Which brings me to another point. Printing a file with raster fonts (like a pdf uses) is going to be exceedingly slow on a receipt printer (ie: maybe 30 seconds or more for one rcpt) to take advantage of the speed of a rcpt printer you need to use native printer fonts - which is not possible using CF * (you might be able to work a vbscript/cfexecute solution to print raw text files - but I was never able to get it to work)

The zippy speed you see at most places where the rcpt just slides out in seconds uses these printer fonts. anything else will be unacceptably slow.

In any case, it is not going to be straightforward and will require a lot more than cut and paste CF code. I tried this several years ago and ended up writing the POS system in VB as it was just so much easier.
0
 
LVL 3

Assisted Solution

by:dagaz_de
dagaz_de earned 167 total points
ID: 35214604
U can use firefox to print without dialog:
type about:config in the URL

the set the parameter:

print.always_print_silent to true

thats it!
0
 
LVL 36

Expert Comment

by:SidFishes
ID: 35215099
oh - good one dagaz I'll keep that one for future reference. Found a possible solution for IE too

http://justtalkaboutweb.com/2008/05/09/javascript-print-bypass-printer-dialog-in-ie-and-firefox/

Obviously only a solution for an in house POS system and not one you are looking to resell (ie: you can't ask a client to make these kinds of changes) but sounds like that's what the OP is looking for.

There still is the issue of print speed but at least that might be manageable.
0
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

 
LVL 3

Expert Comment

by:dagaz_de
ID: 35216657
you must connect your printer serial to LPT1 f.e.:

then you have to produce a binary pdf.file and send it direct to the LPT port via cfexecute

The "/b" tells the computer this is a "binary" file.

<cfexecute name = "C:\Windows\System32\cmd.exe"
    arguments = "copy YOURPDF.pdf /B  LPT1"
    outputFile = "C:\Temp\output.txt"
    timeout = "1">
</cfexecute>

0
 
LVL 3

Expert Comment

by:dagaz_de
ID: 35216700
To verify that your printer is working  correct,
put some files on a diskette, open a commandline and use:

dir a: > lpt1

Should print a directory list of the files of the diskette.

Make sure that there has been no LPT1 redirect. Go to a cmd window and issue a "Net Use" command. If that shows no redirect try issuing a "Mode lpt1" command.
0
 
LVL 4

Assisted Solution

by:Hammo777
Hammo777 earned 166 total points
ID: 35220212
I did this by connection two printers to the CFServer (networked) and then using CFPrint.  Works great.
0
 

Author Comment

by:wannabemaster
ID: 35256825
Thank you for all comments.
I'm still working on it with all suggestions.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

690 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