Link to home
Start Free TrialLog in
Avatar of wannabemaster
wannabemaster

asked on

Directly two receipt printers

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.
ASKER CERTIFIED SOLUTION
Avatar of SidFishes
SidFishes
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of dagaz_de
dagaz_de

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>

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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wannabemaster

ASKER

Thank you for all comments.
I'm still working on it with all suggestions.