Solved

Directly two receipt printers

Posted on 2011-03-24
7
944 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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Laserjet 4100 have different margins 10 59
CFSPREADSHEET CF2016 overwrites single sheet 22 55
Customising IE behaviour on certain pages 2 98
IIS Authentication Error 401 16 71
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

732 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