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

2009-09-24 Thread Doriano Blengino
Benoît Minisini ha scritto: these are shell commands, cat and echo cat shows the contents of a file and echo print a string in screen we use redirection which is to a device printer /dev/lp0 or lp1 or lp2 see what is your printer To print a file you can write in shell or in gambas SHELL

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

2009-09-24 Thread Doriano Blengino
Demosthenes Koptsis ha scritto: in shell you can do it by echo Program started /var/log/messages note* means redirection to the end of file, so it is append if you type you will erase the contents of the file and put only Program started now you can use this command with SHELL.

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

2009-09-24 Thread Stefano Palmeri
Il giovedì 24 settembre 2009 12:10:50 Doriano Blengino ha scritto: Demosthenes Koptsis ha scritto: in shell you can do it by echo Program started /var/log/messages note* means redirection to the end of file, so it is append if you type you will erase the contents of the file and

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

2009-09-24 Thread Vassilis K
Thank you all for your help. I have tried the following printing SUB: PUBLIC SUB bEktiposi_Click() DIM hPrinter AS Printer DIM hFile AS File hPrinter = OPEN dev/lp1 FOR OUTPUT hPrinter.EndOfLine = gb.Windows PRINT #hFile, test a line: ; CLOSE

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

2009-09-24 Thread Doriano Blengino
Vassilis K ha scritto: It is a typogriphic error. I wrote it as /dev/lp1 Every file in unix has permissions you can change with chmod: chmod a+w /dev/lp1 (ran as user root). It will give everyone permission to use /dev/lp1. Or, you can check/change only the permission for the group.

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

2009-09-24 Thread Vassilis K
You are right! It works without root privileges with: echo this is a test | lpr -P lpt2 but it feeds all the paper !! I 'll try to find a way not to feed the paper !! -- Come build with us! The BlackBerryreg;

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

2009-09-24 Thread Demosthenes Koptsis
see the manual man lpr man pr On Thu, Sep 24, 2009 at 3:18 PM, Vassilis K vka...@otenet.gr wrote: You are right! It works without root privileges with: echo this is a test | lpr -P lpt2 but it feeds all the paper !! I 'll try to find a way not to feed the paper !!

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

2009-09-24 Thread charlesg
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

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

2009-09-24 Thread Doriano Blengino
charlesg ha scritto: 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

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

2009-09-24 Thread Benoît Minisini
Benoît Minisini ha scritto: these are shell commands, cat and echo cat shows the contents of a file and echo print a string in screen we use redirection which is to a device printer /dev/lp0 or lp1 or lp2 see what is your printer To print a file you can write in shell or in gambas

Re: [Gambas-user] How can I specify the translation directory?

2009-09-24 Thread Benoît Minisini
Hi, I can specify the language to use with: System.Language = fr_FR But how can I specify the directory containing the translations? Also, where are those things documented? I only found the System.Language info on the mailing-list. John You can't specify this directory. The

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

2009-09-24 Thread Vassilis K
Is there any chance to find out why I get the message: Access forbidden at the following Sub? And of course to make it work? PUBLIC SUB bEktiposi_Click() DIM hPrinter AS Printer DIM hFile AS File hPrinter = OPEN dev/lp1 FOR OUTPUT hPrinter.EndOfLine = gb.Windows

Re: [Gambas-user] Using SVN in gambas question

2009-09-24 Thread Benoît Minisini
On Wednesday 23 September 2009 21:36:37 you wrote: I have always created the project without the subversion option enabled. The added the project to the svn repo. after that, then you open the project with the gambas ide you can commit and update using the gui. Always worked for me Do

Re: [Gambas-user] Using SVN in gambas question

2009-09-24 Thread M0E Lnx
Yes.. I just check out the code and load the peoject. I've had issues in the past where gambas would add the .gambas (hidden) directory to svn. That creates a problem. So I just exclude that dir from version control and that takes care of it On Sep 24, 2009 6:10 PM, Benoît Minisini

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

2009-09-24 Thread Doriano Blengino
Vassilis K ha scritto: Is there any chance to find out why I get the message: Access forbidden at the following Sub? And of course to make it work? PUBLIC SUB bEktiposi_Click() DIM hPrinter AS Printer DIM hFile AS File hPrinter = OPEN dev/lp1 FOR OUTPUT