[Gambas-user] impression

Daniel Campos daniel.campos at ...338...
Sun Oct 24 10:20:11 CEST 2004


Hi:

No! the net component has a serial port class but not a parallel port
class!

However, to print directly to the printer, you can also use "lpr". The
versions that comes with CUPS, and I think with Foomatic too, acceps the
flag "-l" with means "raw print", that is, all is sent directly to the
printer.

Imagine you want to print a ticket, then order the printer to cut the
paper and then open the cash drawer. You should create 3 jobs for the
printer: the first is printed as usual using just "lpr file", the rest
of jobs would be sent using "lpr -l file.command.cut" and "lpr -l
file.command.opencashdrawer" (of course you have to know the protocol
of the printer to do that...

Regards,

D. Campos






More information about the User mailing list