Re: [Harbour] Re: Printing in OS/2

2008-07-09 Thread Przemyslaw Czerpak
On Wed, 09 Jul 2008, David Arturo Macias Corona wrote: Hi David, > produce not output in printer, but I found two files on disk with > content sent to printer: > LPT1.prn, PRN.prn The same happens in MS-Windows sometimes. > Perhaps all problem is automatic .prn extension added ? > This extensi

Re: [Harbour] Re: Printing in OS/2

2008-07-09 Thread Przemyslaw Czerpak
On Wed, 09 Jul 2008, David Arturo Macias Corona wrote: Hi David, > Before your responses I wrote to Maurilio, after old xHarbour tests. > This is his reponse: > -- > David, > I think OS/2 support for printers has never been written. I don't know if > o

[Harbour] Re: Printing in OS/2

2008-07-09 Thread David Arturo Macias Corona
Przemek, Maurilio: >produce not output in printer, but I found two files on disk with >content sent to printer: >LPT1.prn, PRN.prn >Perhaps all problem is automatic .prn extension added ? >This extension is ignored in DOS/Win when device exist, and not ignored >in OS/2 ? Confirmed Deleting ".pr

[Harbour] Re: Printing in OS/2

2008-07-09 Thread David Arturo Macias Corona
Przemek, Maurilio: Testing again with this code: --- func main SET PRINTER ON ? "Printing to default" SET PRINTER OFF SET PRINTER TO PRN SET PRINTER ON ? "Printing to default (PRN)" SET PRINTER OFF SET PRINTER TO SET PRINTER TO LPT1 SET PRINTER ON ? "Printing to LPT1" SET PRINTER O

[Harbour] Re: Printing in OS/2

2008-07-09 Thread David Arturo Macias Corona
Przemek: >David's report suggests that code like: > proc main() > local hFile, cFile, cData > cFile := "PRN" > cData := "Printer test" + hb_osNewLine() + ; > Version() + hb_osNewLine() + ; > Os() + hb_osNewLine() + ; > DTOC( Date() ) + "

[Harbour] Re: Printing in OS/2

2008-07-09 Thread David Arturo Macias Corona
Przemek: >Have you tried xHarbour? >Such printing uses normal file API. In xHarbour Maurilio changed open() >function used by hb_fsOpen() to OS2 API DosOpen() combined with >_imphandle() > 2006-06-06 09:58 UTC+0200 Maurilio Longo libero.it> > * source/rtl/filesys.c >+ added HB_O

Re: [Harbour] Re: Printing in OS/2

2008-07-09 Thread Maurilio Longo
Hi Przemyslaw, Przemyslaw Czerpak wrote: > On Tue, 08 Jul 2008, Maurilio Longo wrote: > > Hi Maurilio, > >> Locking works ok on xHarbour, I'm using it extensively on files shared >> between >> OS/2, DOS and win32 processes which handle files on a mars_nwe volume. > > This may work because it

Re: [Harbour] Re: Printing in OS/2

2008-07-08 Thread Przemyslaw Czerpak
On Tue, 08 Jul 2008, Maurilio Longo wrote: Hi Maurilio, > Locking works ok on xHarbour, I'm using it extensively on files shared between > OS/2, DOS and win32 processes which handle files on a mars_nwe volume. This may work because it uses different internal API. The client requests are transl

Re: [Harbour] Re: Printing in OS/2

2008-07-08 Thread Maurilio Longo
Przemyslaw, Locking works ok on xHarbour, I'm using it extensively on files shared between OS/2, DOS and win32 processes which handle files on a mars_nwe volume. I think that my fix to filesys.c is superceded by newer GCC versions, but I did not test this extensively given that the present code

Re: [Harbour] Re: Printing in OS/2

2008-07-08 Thread Przemyslaw Czerpak
On Tue, 08 Jul 2008, David Arturo Macias Corona wrote: Hi David, > Harbour under OS/2 does not output to printer > Notice: I never tried to print with Harbour under OS/2 due I use it in > server side, which does not need to print, so this was a surprise Have you tried xHarbour? Such printing use

[Harbour] Re: Printing in OS/2

2008-07-08 Thread David Arturo Macias Corona
Any idea / hint / test ... in problem described below ? David Macias Harbour under OS/2 does not output to printer Notice: I never tried to print with Harbour under OS/2 due I use it in server side, which does not need to print, so this was a surprise I use an old and complex system made in C