home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: 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
-
- 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!
-