comp.lang.ada
 help / color / mirror / Atom feed
From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle)
Subject: Re: Printing in Ada
Date: 1997/03/18
Date: 1997-03-18T00:00:00+00:00	[thread overview]
Message-ID: <5gmj88$7dl$1@cnn.Princeton.EDU> (raw)


Bryan Hyatt wrote:
> 
> I have the Gnat 3.09 version for Windows 95 of Ada.  Is it possible to
> send output directly to a printer instead of via a file.

You could also try open'ing "lpt1:" if you have it attached. 
Of course the printer codes are not system independent, so your
code would not be portable.  

Alternatively, you can get the win32ada binding, and use Windows 95
calls to get at the printer.

--Martin
-- 
Dr. Martin Carlisle, Asst Prof of Comp Sci, US Air Force Academy
Opinions expressed herein are not necessarily those of USAFA.
mcc@cs.usafa.af.mil;http://www.usafa.af.mil/dfcs/bios/carlisle.html


-- 
Martin C. Carlisle, Computer Science, US Air Force Academy
mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html
DISCLAIMER:  The opinions contained herein are not necessarily those 
of the US Air Force or the US Government.




             reply	other threads:[~1997-03-18  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-18  0:00 Martin C. Carlisle [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-03-14  0:00 Printing in Ada Brian Hyatt
1997-03-17  0:00 ` Jon S Anthony
1997-03-20  0:00 ` Wolfgang Gellerich
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox