Some months ago Doriano suggested the code for the printing of 1 line on
a parallel printer which is the following:
PUBLIC SUB bEktiposi_Click()
DIM hPrinter AS File
hPrinter = OPEN "/dev/lp0" FOR OUTPUT
hPrinter.EndOfLine = gb.Windows
PRINT #hPrinter, "test a line: "
CLOSE hPrinter
END
(I had to add the lp group to the user vassilis)
I'm looking for the code for the printing of the same line from a PC in the
local network.
I've tried:
PUBLIC SUB bEktiposi_Click()
DIM hPrinter AS File
hPrinter = OPEN "[email protected]/dev/lp0" FOR OUTPUT
hPrinter.EndOfLine = gb.Windows
PRINT #hPrinter, "test a line: "
CLOSE hPrinter
END
But it says: "Access forbiden"
I've made the printer shared and given to the /dev/lp0 file read - write
permissions (for user-group and other)
Any ideas?
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user