home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4356 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.5 KB  |  58 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
  2. Path: sparky!uunet!spool.mu.edu!caen!uvaarpa!concert!samba!usenet
  3. From: Jon.Meltzer@launchpad.unc.edu (Jon Meltzer)
  4. Subject: Windows printing (tabs in particular)
  5. Message-ID: <1992Dec18.191033.27234@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: lambada.oit.unc.edu
  8. Organization: University of North Carolina Extended Bulletin Board Service
  9. Date: Fri, 18 Dec 1992 19:10:33 GMT
  10. Lines: 46
  11.  
  12.  
  13. I'm looking for information on how the Windows printer API calls handle
  14. extended ASCII and control characters, in particular tabs. We have been
  15. unable to develop applications that work correctly, and cannot find
  16. helpful information in Petzold, Richter, Yao, Schulman, SDK, Borland
  17. Windows API, Windows Secrets, etc.  A reference to a good, detailed,
  18. low-level explanation of how the print routines work will be most welcome.
  19. Following is a detailed description from our Windows programmer, Juraj
  20. Horacek, of the tab printing problem:
  21.  
  22.  
  23. "Executive summary:  :-) 
  24. The "standard" recommended algorithm does not work as Microsoft claims it
  25. should.  They _do_ make some internal conversions in their own apps.
  26.  
  27.  
  28. "Details:
  29. I used the "old" Petzold's method as well as the newest, 3.1-only
  30. implementation of printing.  I tested about 5 apps.  Here are the results:
  31.  
  32. "If you use the HP III driver and do the standard printing seqeuence you
  33. get (in all cases) the tab translated into ascii 127 (which showed up as a
  34. dithered/shaded box in the printout).  In the case of a dot-matrix driver
  35. you get a dot instead of 127.  That is all fom the "recommended" public
  36. algorithms.
  37.  
  38. "Word and Write on the other hand handle a tab differently.  In the case of
  39. the HP driver they do a nice "shift" implemented by a HPC command (HP
  40. Command Language) which leaves a certain blank space.  With a dot-matrix
  41. they output several spaces.  The number of thoe spaces varies (I believe)
  42. for different apps and different versions of the dot-matrix driver.  In
  43. some cases they output some code for which I don't have a complete
  44. reference."  
  45.  
  46. Thanks for any assistance!
  47. Jon Meltzer
  48. Institute for Academic Technology   Durham NC 27713
  49. jonm.iat@mhs.unc.edu
  50. Jon.Meltzer@launchpad.oit.unc.edu
  51.  
  52.  
  53. --
  54.    The opinions expressed are not necessarily those of the University of
  55.      North Carolina at Chapel Hill, the Campus Office for Information
  56.         Technology, or the Experimental Bulletin Board Service.
  57.            internet:  laUNChpad.unc.edu or 152.2.22.80
  58.