English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
Cross-platform "Hello, World" graphical application in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-23 (08:24)
From: Sven Luther <sven.luther@w...>
Subject: Re: [Caml-list] Re: Cross-platform "Hello, World" graphical application in OCaml
On Tue, Feb 22, 2005 at 06:46:46PM +0100, Christophe TROESTLER wrote:
> On Tue, 22 Feb 2005, Richard Jones <rich@annexia.org> wrote:
> > 
> > Printing is another area where things are complicated.  Under Unix
> > it's relatively straightforward: generate a PS or PPM file and pipe it
> > into 'lpr'.  On Windows things are much more complex.  For the app I
> > wrote in 2003, I managed a primitive form of graphic-only printing by
> > hacking out a standalone printing program from the guts of the GIMP
> > Windows printer driver (written in C, not OCaml).  I can let anyone
> > have this if they're interested.
> There is gsprint.exe (http://www.cs.wisc.edu/~ghost/gsview/gsprint.htm)
> which makes it easy to print PS files on a window box.  It is a bit
> heavy -- you need Ghostscript -- but it works well.  I have been using
> it for several months to print to a win$ only color laser printer
> (with the help of a LPD daemon written in OCaml! :).

Mmm, would it be possible to use only said LPD daemon, to print plain text to
the printer under windows ? For log-like applications which don't really need
advanced printing capabilities ? 

I was thinking to generate .pdf files on windows, and then print them with
acrobat reader or something.


Sven Luther