Hi,

I tried printing line-by-line directly to the raw device and got into awful
overlapping (? buffering) problems.

I think you would be far better to create a single line text file each time
and then print it with (for example):
SHELL "cat /home/charles/tilRcpt>/dev/lp0"

It's blindingly quick and for me is absolutely reliable. As usual, I am sure
there are more elegent solutions :)

I also had to set write permission to the device in form_open something
like:
SHELL "gksu -u root 'chmod a+rw /dev/lp0'"
Its a pain to have to supply a password, but it only does it once.

-- 
View this message in context: 
http://www.nabble.com/How-to-sent-a-line-line-to-a-lp1-printer-and-form-to-lp0-printer-directly.-tp25574065p25576315.html
Sent from the gambas-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to