home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!elroy.jpl.nasa.gov!ames!pacbell.com!tandem!Tandem.COM!stu
- From: stu@Tandem.COM (Stuart Phillips)
- Subject: GDI printing problems with PSCRIPT.DRV ??
- Message-ID: <1993Jan21.193909.15342@tandem.com>
- Sender: news@tandem.com
- Nntp-Posting-Host: av8r.cpd.tandem.com
- Reply-To: stu@Tandem.COM
- Organization: Tandem Computers, Cupertino - USA
- Date: Thu, 21 Jan 1993 19:39:09 GMT
- Lines: 38
-
- So it appears that GDI isn't as device independent as you might expect!
- I have a program that prints just fine on a whole bunch of different
- printers but doesnt print correctly when output to a printer driven
- through PSCRIPT.DRV.
-
- The first page prints just fine but subsequent pages are missing my page
- headers and some dividing lines on the page. Inspection of the Postscript
- generated by the driver shows that the header information is generated
- correctly for the first page but is missing for subsequent pages.
-
- It almost appears as if the driver recognized a common sequence across
- different pages and tried to macro'ize the headers.
-
- The code that I have driving the GDI looks something like this:
-
- StartDoc(hDC); // Issues Escape(STARTDOC)
-
- while (!bDonePrinting) {
- StartPage(hDC);
- PrintHeaders(hDC);
-
- < Print body of page>
- EndPage(hDC);
- }
-
- EndDoc(hDC); // Issues Escape(ENDDOC)
-
- Has anyone else seen this kind of problem with PSCRIPT.DRV and if so,
- do you know what magic incantation generates a work around ?
-
- Thanks!
- Stu
-
- ---------------------------------------------------------------------------
- "There's no such thing as too many Windows Programming Books!"
- - Stuart G. Phillips, October 1992
- ---------------------------------------------------------------------------
-
-