On Tue, May 27, 2008 at 9:20 PM, Jean Szabo <[EMAIL PROTECTED]> wrote: > Hello, > > I must print a ticket on a printer Epson (thermique), and I can send it > a rtf file with special font for a quick print. > > How can I generate and send directely a rtf document with AIR ? > > Can I just send text, with font and font size, without canvas ?
Hi Jean, That is not currently possible with Flex or AIR. I have had the same problem in the past. The way I solved it was as follows. I installed the POS printers on each point of sales, and made it shareable. On the server side, I created a servlet that would send the request to the correct printer. I mapped an ip address to a printer address in the database. So, whenever I point of sales requested a print job, the server would read the IP address of the machine making the request, and would retrieve the printer address so that it could send the print data to it. The print data is all ASCII, as I was using Parallel Port printers. The solution would be the same for a USB printer as well. So, my advise is just for you to give it a try. We have modified the application to use the Hessian protocol now, but you can also implement it using BlazeDS. Hope that info was helpful. All the best, Fidel.

