🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2027

Windows printing (tabs in particular)

#2027
From: Jon Meltzer
Date: Fri, 18 Dec 1992 19:10
46 lines
2570 bytes
I'm looking for information on how the Windows printer API calls handle
extended ASCII and control characters, in particular tabs. We have been
unable to develop applications that work correctly, and cannot find
helpful information in Petzold, Richter, Yao, Schulman, SDK, Borland
Windows API, Windows Secrets, etc.  A reference to a good, detailed,
low-level explanation of how the print routines work will be most welcome.
Following is a detailed description from our Windows programmer, Juraj
Horacek, of the tab printing problem:


"Executive summary:  :-) 
The "standard" recommended algorithm does not work as Microsoft claims it
should.  They _do_ make some internal conversions in their own apps.


"Details:
I used the "old" Petzold's method as well as the newest, 3.1-only
implementation of printing.  I tested about 5 apps.  Here are the results:

"If you use the HP III driver and do the standard printing seqeuence you
get (in all cases) the tab translated into ascii 127 (which showed up as a
dithered/shaded box in the printout).  In the case of a dot-matrix driver
you get a dot instead of 127.  That is all fom the "recommended" public
algorithms.

"Word and Write on the other hand handle a tab differently.  In the case of
the HP driver they do a nice "shift" implemented by a HPC command (HP
Command Language) which leaves a certain blank space.  With a dot-matrix
they output several spaces.  The number of thoe spaces varies (I believe)
for different apps and different versions of the dot-matrix driver.  In
some cases they output some code for which I don't have a complete
reference."  

Thanks for any assistance!
Jon Meltzer
Institute for Academic Technology   Durham NC 27713
jonm.iat@mhs.unc.edu
Jon.Meltzer@launchpad.oit.unc.edu


--
   The opinions expressed are not necessarily those of the University of
     North Carolina at Chapel Hill, the Campus Office for Information
        Technology, or the Experimental Bulletin Board Service.
           internet:  laUNChpad.unc.edu or 152.2.22.80
Technical Details
Message-ID: <1992Dec18.191033.27234@samba.oit.unc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!caen!uvaarpa!concert!samba!usenet

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!caen!uvaarpa!concert!samba!usenet
From: Jon.Meltzer@launchpad.unc.edu (Jon Meltzer)
Subject: Windows printing (tabs in particular)
Message-ID: <1992Dec18.191033.27234@samba.oit.unc.edu>
Sender: usenet@samba.oit.unc.edu
Nntp-Posting-Host: lambada.oit.unc.edu
Organization: University of North Carolina Extended Bulletin Board Service
Date: Fri, 18 Dec 1992 19:10:33 GMT
Lines: 46