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-22 (17:47)
From: Christophe TROESTLER <Christophe.Troestler@u...>
Subject: Re: [Caml-list] Re: Cross-platform "Hello, World" graphical application in OCaml
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! :).

Hope it helps,
ChriS