Please vote form my idea 'send text to printer' on ideas.adobe.com. You can add a comment for the 'bypass print dialog', which is a good addition.
1 person found this helpful
>> 2. To bypass the Print Dialog which pops up when the PrintJob.Start() method executes.
This functionality was added in AIR 2.
Please check out
for additional information.
Drat, I knew that too. Thanks Chris. Print without dialog is done.
We still need to be able to send plain text to a printer to accomplish the cash drawer and POS printer stuff.
In the meantime you can use either NativeProcess or sockets to create a small program that runs on the machine to control the cash drawer/printer - AIR can talk to it through a socket, and it can pass the commands/text on to the device.
Thanks for the replay.
I need a cross-platform POS.
If I use native process/socket, I need to develop another program which interacts with the Cash Drawer/Printer & this program will not be in Adobe AIR
(i.e. could be a .net / java program) which will add some licensing cost to me .
Any alternative suggestion for this?
Also if you know some free tool/program that I can use to feed the data to socket please let me know.
Java should be royalty free, if you use it. Python would also be a good choice, and provides the tools needed to get it done.
For opening the cash drawer, you could just have the cash drawer commands in a file, and call a nativeprocess from AIR (.bat file on Windows, shell script in linux, not sure on Mac - I don't do apple) that copies that file to the cash drawer device.