Skip to main content
April 7, 2008
Question

Online Food Ordering (Printing Automatically)

  • April 7, 2008
  • 2 replies
  • 807 views
Hello,

Everyone I am designing a project for online food ordering and have developed a prototype in CFMX but I am trying to get my head around this one part which is the clients want when a new order comes in it automatically print to a designated printer. I can't really see how to do this other than installing some kind of client App on the computer that while host this printer and have it print somehow. I am looking for suggestions on what who you do or what do you know actually works for places that offer this service.

My ideas were to

Have a screen display the new order on a monitor but have the order displayed by using a webpage that refreshes every say 15 seconds and will pop the new order up on the screen and have them print it manually. This is all cool but they want it to be printed automatically

Have a designated e-mail account setup and when a new order comes in the web app will send the order to this e-mail address but then I got stuck on how to get it to print automatically.

Any Ideas,

Thanks in advance
This topic has been closed for replies.

2 replies

Inspiring
April 7, 2008
I've actually done this. I wrote a batch file that used windows print and then used cfexecute.

I could have used cfexecute with windows print, but I had trouble with the syntax for the printer.

If you want to print to the default printer in the store, you can have your batch file call notepad in the minimized state and do it that way.

I think my google search string was "automatic windows print" or something like that.
Inspiring
April 7, 2008
With CF 8 you could use the CFPRINT tag.

For earlier versions of CF you might generate a text file then print it from a command line utility via CFEXECUTE.

To generate a fax you might use InterFax, http://www.interfax.net
April 7, 2008
How do you suggest using the CFPRINT Tag, because just thinking about it, it seems more suitable to for say teh customer after they are done to automatically print to thier default printer but to be able to have that order printed automatically some where else(like at the store) when a order comes in, that is what I am unsure about. The Fax option definately looks like I can use that out of the box but does it require you to know languages other than CF? I know a little PHP and .NET can this only be done using these languages?

Thanks for your help that has been really helpful
April 7, 2008
Oh thanks I found the answer about the Fax: http://www.interfax.net/en/dev/coldfusion.html