[Gambas-user] How to sent a line line to a lp1 printer and form to lp0 printer directly.

Vassilis A. Kanatas vkan53 at ...2300...
Fri Sep 25 11:43:54 CEST 2009


Yeeeeeeeeeesssssssssssssssss!!!

Gracia Doriano,
Ευχαριστώ  Demosthenes
Merci Benoit

It is done!

Doriano had right

I had to add the lp group to the user Vassilis.

I also had to put DIM hPrinter AS File !!!

After that the correct code for printing 1 line each time is the
following:

PUBLIC SUB bEktiposi_Click()
	DIM hPrinter AS File
	hPrinter = OPEN "/dev/lp1" FOR OUTPUT
	hPrinter.EndOfLine = gb.Windows
	PRINT #hPrinter, "test a line: "
	CLOSE hPrinter
END







More information about the User mailing list