From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ebf21123df395107,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-09 08:31:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!newspeer1-gui.server.ntli.net!ntli.net!newsfep1-win.server.ntli.net.POSTED!53ab2750!not-for-mail Message-ID: <3D037471.5AF4DB79@NOTINNEDMEATntlworld.com> From: Pheet X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Output to Printer Problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 09 Jun 2002 16:29:53 +0100 NNTP-Posting-Host: 80.1.190.49 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep1-win.server.ntli.net 1023636666 80.1.190.49 (Sun, 09 Jun 2002 16:31:06 BST) NNTP-Posting-Date: Sun, 09 Jun 2002 16:31:06 BST Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:25595 Date: 2002-06-09T16:29:53+01:00 List-Id: Hiya, I am having problems printing with ada. I'm using GNAT 3.13p (GCC 2.8.1) on a Win98 box (yes, I know, don't ask). I'm trying code along these lines: with Text_IO; use Text_io; ... Procedure Print is File:FIle_Type; Begin open (File, Out_Mode, "LPT1"); put(File, "Hello Printer!"); close(File); ... end print; My printer is definitely called LPT1 'cause it's there in the hardware profile and i can do: >type test.txt > LPT1 from the dos prompt and this works as expected. The error I get is always ADA.IO_EXCEPTIONS.STATUS_ERROR , not a name error. Any ideas or suggestions on this would be greatfully appreciated, as it's starting to irritate me now! :-) TIA, Pheet