From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 953D3BC75 for ; Wed, 23 Feb 2005 09:24:46 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1N8Oktp032260 for ; Wed, 23 Feb 2005 09:24:46 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA20712 for ; Wed, 23 Feb 2005 09:24:45 +0100 (MET) Received: from smtp4.wanadoo.fr (smtp4.wanadoo.fr [193.252.22.27]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1N8Ojlp032257 for ; Wed, 23 Feb 2005 09:24:45 +0100 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0409.wanadoo.fr (SMTP Server) with ESMTP id 616781C00381; Wed, 23 Feb 2005 09:24:45 +0100 (CET) Received: from pegasos (AStrasbourg-251-1-63-140.w82-126.abo.wanadoo.fr [82.126.131.140]) by mwinf0409.wanadoo.fr (SMTP Server) with ESMTP id 89A381C00384; Wed, 23 Feb 2005 09:24:43 +0100 (CET) X-ME-UUID: 20050223082443563.89A381C00384@mwinf0409.wanadoo.fr Received: from luther by pegasos with local (Exim 4.44) id 1D3rgS-00057a-H3; Wed, 23 Feb 2005 09:15:48 +0100 Date: Wed, 23 Feb 2005 09:15:44 +0100 To: Christophe TROESTLER Cc: "O'Caml Mailing List" Subject: Re: [Caml-list] Re: Cross-platform "Hello, World" graphical application in OCaml Message-ID: <20050223081544.GA10506@pegasos> References: <20050222120308.GA2975@furbychan.cocan.org> <20050222140333.GA4603@furbychan.cocan.org> <20050222.184646.71942873.Christophe.Troestler@umh.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20050222.184646.71942873.Christophe.Troestler@umh.ac.be> User-Agent: Mutt/1.5.6+20040907i From: Sven Luther X-Miltered: at concorde with ID 421C3DCE.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 421C3DCD.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 sven:01 luther:01 sven:01 luther:01 christophe:01 troestler:01 wrote:01 wrote:01 gimp:01 ocaml:01 ghostscript:01 2003,:98 lpd:98 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: On Tue, Feb 22, 2005 at 06:46:46PM +0100, Christophe TROESTLER wrote: > On Tue, 22 Feb 2005, Richard Jones 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. Friendly, Sven Luther