[Gambas-user] Ask About POS Programming using Gambas
charlesg
charles at ...1784...
Thu Jan 8 07:59:55 CET 2009
Hi,
I guess it is because you are printing to a raw device (/dev/lp0) which has
no buffering. Two paths for you to follow:
Install (and probably modify) a printer driver such as 'generic' through
CUPS. This will introduce a buffer to the printing process.
or
Use a (very) un-subtle workaround: trap the error. Loop on a 0.5 sec (or
whatever) delay and try again. I call it the Stalinist approach. Its a bit
like getting people to continually vote on a constitution until they get the
right answer.
rgds
--
View this message in context: http://www.nabble.com/Ask-About-POS-Programming-using-Gambas-tp21345920p21346777.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list