From: rasser@ddf.dk
To: comp.lang.ada@ada.eu.org
Subject: Re: ada printing
Date: Sun, 31 Dec 2000 11:11:44 GMT
Date: 2000-12-31T11:11:44+00:00 [thread overview]
Message-ID: <OF680D3A70.A589E51C-ON412569C6.003D40D3@LocalDomain> (raw)
This should work from for Win98, DOSbox or not. Use "LPT1" in "Open"
instead of "PRN" if you like result is the same with only one printer
port.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Latin_1; use Ada.Characters;
procedure Test_Prn is
Outf : File_Type;
begin
Open (Outf, Out_File, "PRN");
Put (Outf, "This is printed on PRN....");
Put (Outf, Latin_1.LF & Latin_1.CR);
Close (Outf);
end Test_Prn;
next reply other threads:[~2000-12-31 11:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-31 11:11 rasser [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-12-28 14:36 ada printing thomas
2000-12-28 20:41 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox