Opening the printer like that is not standard fortran, so the method will vary with compilers. I use Lahey 5.6 also, however, I'm not sure if you can do what you want to do ( I haven't tried myself ). I don't recommend that you do it anyhow. Most people have inkjet or laser printers nowadays, and your way of accessing things is not going to work on a lot of systems regardless of the fortran compiler you use.
Accessing the printer through Windows: Generally, people have a printer hooked to thier systems which Windows recognizes. By default, all print request go through Windows and Windows finds the printer ( with drivers already loaded ) and does its thing. Personally, I recommend you don't circumvent this, simply because it will give you the most portability across computer systems people are likely to have.
Possible solution to your problem:
I think Lahey can work similar to MS Powerstation here. You'll have to contact Lahey technical support to find out though. It might work differently on various versions of Windows, etc.
You can also do this:
OPEN(UNIT=7,FILE='tempfile')
WRITE(7,*) ' use as many writes to the file as you like.'
Close ( 7 )
From Windows, manual print out the file you have just created. Otherwise, Lahey has some porting extensions listed at the back of the Language reference guide. One of them may allow you to print directly from within your program. Also... Wisk ( a Winteracter subset is included with your Lahey compiler )... "might" have the capability to send a file directly to the printer. I know the full Winteracter product will allow this.
Dan
