From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Sending characters from Ada to the printer on this dam$$#!! blo$$## vindoze
Date: Sat, 20 Oct 2001 03:04:47 GMT
Date: 2001-10-20T03:04:47+00:00 [thread overview]
Message-ID: <3BD0EA05.77CC3E97@acm.org> (raw)
In-Reply-To: 9qpchu$7ps$1@melon.univ-brest.fr
Vincent MORIN wrote:
>
> My printer is a local HP laserjet MP6 called HPL6 on port LPT1:
> simple minded as I am I believed that
>
> Open( PrintFile, Out_File, "LPT1:" );
This works with GNAT 3.13p/Win98:
with Ada.Text_IO;
use Ada.Text_IO;
procedure Print_It is
Printer : File_Type;
begin -- Print_It
Create (File => Printer, Mode => Out_File, Name => "LPT1:");
Put_Line (File => Printer, Item => "Here is a line for the printer");
New_Page (File => Printer);
Close (File => Printer);
end Print_It;
--
Jeff Carter
"English bed-wetting types."
Monty Python & the Holy Grail
prev parent reply other threads:[~2001-10-20 3:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-19 14:16 Sending characters from Ada to the printer on this dam$$#!! blo$$## vindoze Vincent MORIN
2001-10-20 3:04 ` Jeffrey Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox