delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/14/05:18:12

Date: Sun, 14 Oct 2001 11:13:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: CBFalconer <cbfalconer AT yahoo DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: get lines to the printer
In-Reply-To: <3BC8E739.398EF950@yahoo.com>
Message-ID: <Pine.SUN.3.91.1011014111332.15625G@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 14 Oct 2001, CBFalconer wrote:

> > Yes, use the predefined stream `stdprn'.  Like this:
> > 
> >      fprintf (stdprn, "Hello, my printer!\n");
> 
> Is there some special magic there?

I don't understand the question.  stdprn is connected to the file
handle which the OS should funnel into the printer.  On Windows, this
generally means that when you install a printer driver, you should
specify that DOS jobs use that driver as well.  That is the only magic
you need.

> I do all my printing via
> fineprint (see http://www.fineprint.com) which is a windows only
> printer driver that creates booklets, etc.  It is not normally
> accessible from DOS, so I have no printing capability from DOS
> except to write to a file and later print that.

Like you said: if fineprint doesn't support printing from the DOS box,
then you are toast.  The only solution is to toss fineprint, or to use
temporary files.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019