From pkocmid@atlas.cz  Fri Feb 25 12:59:05 2000
Received: from relay.atlas.cz (relay.atlas.cz [195.119.187.170])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA14241
	for <prolog@swi.psy.uva.nl>; Fri, 25 Feb 2000 12:59:05 +0100 (MET)
Received: from raxas ([212.20.101.240]) by relay.atlas.cz  with Microsoft SMTPSVC(5.5.1877.357.35);
	 Fri, 25 Feb 2000 13:02:47 +0100
From: "Petr Kocmid" <pkocmid@atlas.cz>
To: <prolog@swi.psy.uva.nl>
Subject: RE: How to send output to a printer in swi-prolog win95/NT
Date: Fri, 25 Feb 2000 12:58:03 +0100
Message-ID: <LOBBKIFBPIKMGOCJCAKDIEJMDEAA.pkocmid@atlas.cz>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
In-Reply-To: <38B5123F.6D8E0BB2@dcs.qmw.ac.uk>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by swi.psy.uva.nl id MAA14241

> From: Duc Tai Dam [mailto:dtd77@dcs.qmw.ac.uk]
> Subject: RE: How to send output to a printer in swi-prolog win95/NT
> From the references manual I can't seem to find a command that would get
> prolog to print the screen or print from a file.

try open/3:

open(lpt1,write,P),write(P,something),close(P).

change lpt1 to whatever your printer port is. If network printer, you should 
map it to local logic port name first, such as lpt3, using printer properties
control panel (or maybe prolog accepts a network name in stream open? 
cannot try since I have no local network on the box I am sitting at now).

I doubt there is a way of dumping the plwin console to printer.

Petr Kocmid
pkocmid@atlas.cz

