Re: [Gambas-user] One line printing to a /dev/lp0 printer from local network

2010-03-17 Thread Doriano Blengino
Vassilis K ha scritto: > Thank you Alessandro very elegant solution. I'll give it a try! > > Doriano, I don't understand how could netcat work here. > > Open a terminal and type: nc -p27 -l |while read; do echo "send this to /dev/lp0: $REPLY"; done Then open another terminal and type:

Re: [Gambas-user] One line printing to a /dev/lp0 printer from local network

2010-03-17 Thread Vassilis K
Thank you Alessandro very elegant solution. I'll give it a try! Doriano, I don't understand how could netcat work here. -- Download IntelĀ® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, fi

Re: [Gambas-user] One line printing to a /dev/lp0 printer from local network

2010-03-17 Thread Doriano Blengino
Alessandro Rinaldi ha scritto: > Mounting doesn't work: specials files like the ones in /dev work only > if opened from the local PC. > Right - just tested now (at the time I wrote the other message, I couldn't verify) > In any case, you could do a Gambas app that is executed on the > printing

Re: [Gambas-user] One line printing to a /dev/lp0 printer from local network

2010-03-17 Thread Alessandro Rinaldi
Mounting doesn't work: specials files like the ones in /dev work only if opened from the local PC. In any case, you could do a Gambas app that is executed on the printing server, waits for data from the network and print it on the local printer... So the client app would just send the text over the

Re: [Gambas-user] One line printing to a /dev/lp0 printer from local network

2010-03-16 Thread Doriano Blengino
Vassilis K ha scritto: > 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 >

[Gambas-user] One line printing to a /dev/lp0 printer from local network

2010-03-16 Thread Vassilis K
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: