Date: Sun, 14 Oct 2001 11:13:50 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: CBFalconer cc: djgpp AT delorie DOT com Subject: Re: get lines to the printer In-Reply-To: <3BC8E739.398EF950@yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.