home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5239 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.7 KB  |  51 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!tandem!Tandem.COM!stu
  3. From: stu@Tandem.COM (Stuart Phillips)
  4. Subject: GDI printing problems with PSCRIPT.DRV ??
  5. Message-ID: <1993Jan21.193909.15342@tandem.com>
  6. Sender: news@tandem.com
  7. Nntp-Posting-Host: av8r.cpd.tandem.com
  8. Reply-To: stu@Tandem.COM
  9. Organization: Tandem Computers, Cupertino - USA
  10. Date: Thu, 21 Jan 1993 19:39:09 GMT
  11. Lines: 38
  12.  
  13. So it appears that GDI isn't as device independent as you might expect!
  14. I have a program that prints just fine on a whole bunch of different
  15. printers but doesnt print correctly when output to a printer driven
  16. through PSCRIPT.DRV.
  17.  
  18. The first page prints just fine but subsequent pages are missing my page
  19. headers and some dividing lines on the page.  Inspection of the Postscript
  20. generated by the driver shows that the header information is generated
  21. correctly for the first page but is missing for subsequent pages.
  22.  
  23. It almost appears as if the driver recognized a common sequence across
  24. different pages and tried to macro'ize the headers.
  25.  
  26. The code that I have driving the GDI looks something like this:
  27.  
  28.     StartDoc(hDC);    // Issues Escape(STARTDOC)
  29.  
  30.     while (!bDonePrinting) {
  31.         StartPage(hDC);
  32.         PrintHeaders(hDC);
  33.  
  34.         < Print body of page>
  35.         EndPage(hDC);
  36.     }
  37.  
  38.     EndDoc(hDC);    // Issues Escape(ENDDOC)
  39.  
  40. Has anyone else seen this kind of problem with PSCRIPT.DRV and if so,
  41. do you know what magic incantation generates a work around ?
  42.  
  43. Thanks!
  44. Stu
  45.  
  46. ---------------------------------------------------------------------------
  47. "There's no such thing as too many Windows Programming Books!"
  48.     - Stuart G. Phillips, October 1992
  49. ---------------------------------------------------------------------------
  50.  
  51.