comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com (Ted Dennison)
Subject: Re: Printing
Date: 16 Apr 2002 06:31:26 -0700
Date: 2002-04-16T13:31:26+00:00	[thread overview]
Message-ID: <4519e058.0204160531.271966e4@posting.google.com> (raw)
In-Reply-To: x_Cu8.20049$sL6.3522988@news11-gui.server.ntli.net

"Fraz" <fraz@totalise.co.uk> wrote in message news:<x_Cu8.20049$sL6.3522988@news11-gui.server.ntli.net>...
> Sorry if this in an FAQ, but is there a command in ada that will send the
> current window to the printer? or even the contents of an array?

Nope. Ada is not an Operating System, so it has no clue what devices
you have attached to your system and how to get hold of them.

However, most OS's allow you to open a printer device as a file. If
you can do that, then you can use any of Ada's file facilities to send
data to a printer. That will probably only work well for strings
though. If you want to send graphics, you will need to find out how
one does that with your OS, then call that OS routine(s) from Ada. The
latter is really the easy part. What you need to do from here is
reformulate the question as an operating system question, then go ask
it in the appropriate newsgroup for your OS.


-- 
T.E.D.
Home     -  mailto:dennison@telepath.com (Yahoo: Ted_Dennison)
Homepage -  http://www.telepath.com/dennison/Ted/TED.html



  reply	other threads:[~2002-04-16 13:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-15 16:12 Printing Fraz
2002-04-16 13:31 ` Ted Dennison [this message]
2002-04-23 15:47 ` Printing Stephen Leake
replies disabled

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