comp.lang.ada
 help / color / mirror / Atom feed
* Output to Printer Problems
@ 2002-06-09 15:29 Pheet
  2002-06-09 19:31 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 4+ messages in thread
From: Pheet @ 2002-06-09 15:29 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Output to Printer Problems
@ 2002-06-09 14:39 Pheet
  2002-06-09 18:38 ` Jeffrey Carter
  0 siblings, 1 reply; 4+ messages in thread
From: Pheet @ 2002-06-09 14:39 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-06-09 19:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-09 15:29 Output to Printer Problems Pheet
2002-06-09 19:31 ` David C. Hoos, Sr.
  -- strict thread matches above, loose matches on Subject: below --
2002-06-09 14:39 Pheet
2002-06-09 18:38 ` Jeffrey Carter

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