[Gambas-user] Re: dumping text to printer

alx jvr alxjvr.gambas at ...626...
Fri Nov 18 01:34:41 CET 2005


hi, sorry for the late response, was on vacation. thanks for the tip benoit.
will check it out

On 11/12/05, Benoit Minisini <gambas at ...1...> wrote:
>
> On Saturday 12 November 2005 01:43, alx jvr wrote:
> > > hello! is there something in gambas similar to the ff. code in vb:
> > >
> > > open "lpt1" for output as #1
> > > print #1, "whatever"
> > > close #1
> > >
> > > .... that would print the word "whatever" directly to whatever
> >
> > printer is connected on the parallel port on linux?
>
> On Linux, parallel ports are named /dev/lp0, /dev/lp1...
>
> But you should never send data directly to these devices (most of the
> time,
> you didn't have the rights for doing that...).
>
> You must use the printer sub-system. Nowadays, Linux use the CUPS system
> to
> manage printers.
>
> You send data to the printer by using a command like 'lpr'.
>
> You can use the kprinter program, if you use KDE. But then you get a KDE
> print
> configuration dialog, like what you got on Windows.
>
> It depends on what you want to do exactly...
>
> --
> Benoit Minisini
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20051118/d4d885fa/attachment.html>


More information about the User mailing list