🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3337

Re: Printing ASCII

#3337
From: Grant McArthur
Date: Thu, 07 Jan 1993 21:46
19 lines
1391 bytes
In article <1ihok0INNmb8@morrow.stanford.edu> GG.MPD@forsythe.stanford.edu (Michael Durket) writes:
>Is there an interface into OS/2 printing that allows you to
>submit an ASCII file to be printed on any printer (i.e. does
>OS/2 have a general purpose ASCII to printer-dependent page
>formatting routine)? I'd like to avoid writing a routine to
>do this for my program if one already exists that I can use.
>
>Any assistance is appreciated.

Use LPT1: (or whatever printer port you wish) like a file.  Use DosOpen with 
LPT1: as the file name, and then treat it like a file with DosWrite() calls.

I found that worked nicely for printed ASCII to a printer.  (My case was 
information tables to a HP emulating printer by the NULL printer driver.)

Hope this helps,
Grant McArthur
University of Waterloo
Waterloo, Ontario, Canada
Technical Details
Message-ID: <C0I756.CA8@undergrad.math.waterloo.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!napier.uwaterloo.ca!gmcarthu
References: <1ihok0INNmb8@morrow.stanford.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!napier.uwaterloo.ca!gmcarthu
From: gmcarthu@napier.uwaterloo.ca (Grant McArthur)
Subject: Re: Printing ASCII
Message-ID: <C0I756.CA8@undergrad.math.waterloo.edu>
Summary: DosOpen() 
Sender: news@undergrad.math.waterloo.edu
Organization: University of Waterloo
References: <1ihok0INNmb8@morrow.stanford.edu>
Distribution: na
Date: Thu, 7 Jan 1993 21:46:18 GMT
Lines: 20