home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3500 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.2 KB  |  39 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!comp.vuw.ac.nz!actrix!Peter.Hug
  3. From: Peter.Hug@bbs.actrix.gen.nz
  4. Subject: Printing using the new Windows 3.1 API
  5. Organization: Actrix Information Exchange
  6. Date: Wed, 18 Nov 1992 01:20:02 GMT
  7. Message-ID: <1992Nov18.012002.983@actrix.gen.nz>
  8. Sender: Peter.Hug@actrix.gen.nz (Peter Hug)
  9. Lines: 28
  10.  
  11. I have two problems with printing under Windows 3.1:
  12.  
  13. 1. Are there situations when an application must use "banding" for printing
  14.    or is this something an application can descide if it wants to make use of
  15.    this feature. If it is required with some printer drivers, how can this be 
  16.    determined?
  17.  
  18. 2. When using "banding", the sequence of printer functions I invoke is:
  19.  
  20.    StartDoc(...);
  21.    while( more pages )
  22.       {
  23.       StartPage(...);
  24.       Escape(..., NEXTBAND, paintRectangle, ....);
  25.       while(!IsEmptyRect(paintRectangle))
  26.          {
  27.          paintBand(..., paintRectangle );
  28.          Escape(..., NEXTBAND, paintRectangle, ....);
  29.          }
  30.       EndPage(...);
  31.       }
  32.    EndDoc(...);
  33.  
  34.    Unfortunately, EndPage() always returns SB_ERROR! Is there a cure? If I
  35.    dont use banding, everything works just fine!
  36.  
  37.  
  38.    Thanks for your input!
  39.