TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Proportional Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To: "EDUARDO HASBUN ." <[log in to unmask]>
Date: Wed, 5 Sep 2001 18:45:22 -0400
Reply-To: Stephen Leake <[log in to unmask]>
From: Stephen Leake <[log in to unmask]>
In-Reply-To: <5.1.0.14.0.20010905162501.009ea210@localhost>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Parts/Attachments: text/plain (20 lines)
"EDUARDO HASBUN ." <[log in to unmask]> writes:

> I need to be able to set the output to a printer, in other words I want to
> print something in Ada 95 using my printer.  I'm using GNAT 3.13p in
> Windows.  Can someone help me??

This question is better suited to comp.lang.ada, since it is not an
Ada advocacy question.

The answer depends on what you want to print. If it is just text, you
can try using the printer's network name as a file name in
Text_IO.Open. If you want to draw lines and use fonts, you have to
access the Win32 GUI functions, via Windex or Claw or GtkAda, and
write to a printer device instead of a screen device.

Good luck!

--
-- Stephe

ATOM RSS1 RSS2