🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Printing using the new Windows 3.1 API

#2105
From: Peter.Hug
Date: Wed, 18 Nov 1992 01:20
28 lines
1255 bytes
I have two problems with printing under Windows 3.1:

1. Are there situations when an application must use "banding" for printing
   or is this something an application can descide if it wants to make use of
   this feature. If it is required with some printer drivers, how can this be 
   determined?

2. When using "banding", the sequence of printer functions I invoke is:

   StartDoc(...);
   while( more pages )
      {
      StartPage(...);
      Escape(..., NEXTBAND, paintRectangle, ....);
      while(!IsEmptyRect(paintRectangle))
         {
         paintBand(..., paintRectangle );
         Escape(..., NEXTBAND, paintRectangle, ....);
         }
      EndPage(...);
      }
   EndDoc(...);

   Unfortunately, EndPage() always returns SB_ERROR! Is there a cure? If I
   dont use banding, everything works just fine!


   Thanks for your input!
Technical Details
Message-ID: <1992Nov18.012002.983@actrix.gen.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!actrix!Peter.Hug

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!actrix!Peter.Hug
From: Peter.Hug@bbs.actrix.gen.nz
Subject: Printing using the new Windows 3.1 API
Organization: Actrix Information Exchange
Date: Wed, 18 Nov 1992 01:20:02 GMT
Message-ID: <1992Nov18.012002.983@actrix.gen.nz>
Sender: Peter.Hug@actrix.gen.nz (Peter Hug)
Lines: 28