home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!solix.udac.uu.se!pcs433.UDAC.UU.SE!mikael
- From: mikael@udac.uu.se (Mikael Lundgren)
- Subject: Printing problems, (HP-PaintJet).
- Message-ID: <mikael.88.721394395@udac.uu.se>
- Keywords: Printer, win31, HP-PaintJet
- Lines: 42
- Sender: news@solix.udac.uu.se
- Organization: UDAC, Uppsala University, Sweden
- References: <mikael.87.721342461@udac.uu.se>
- Date: Tue, 10 Nov 1992 11:19:55 GMT
-
- From: mikael@udac.uu.se (Mikael Lundgren)
- Subject: Printing problems, (HP-PaintJet).
- Keywords: Printer, win31, HP-PaintJet
- Date: Mon, 9 Nov 1992 20:54:21 GMT
-
- I am having a problem that is driving me nuts! I have been working with this
- problem for several days now...
-
- I am trying to write some code that allows an application to print text to
- a printer. As long as I am writing to the laser printer (PostScript) I
- encounter no problems, everything works smoothly. But, when I try to write
- to a HP-PaintJet everything works on the first page then from the second
- page on all output goes to the very first line of page 2 (a very black
- line!).
-
- I am using the new win3.1 functions instead of the old escape codes.
- A StartDoc() & StartPage() at the beginning of the document
- an EndPage() & StartPage() pair to go to the next page
- and EndPage() & EndDoc() to end the document.
-
- The program is written using Glockenspiel C++ and CommonView although the
- printing code itself is written i rather standard windows code.
-
- I have tried different things to make the printing work, the most successful
- has been to print on a landscape oriented page rather than on a portrait
- oriented one with such a setting printing works! The problem is that it is
- very slow and it is not enough :-(
- I also had suspicions about the printer driver, but a test using Notepad
- did not encounter my problem.
-
- I have looked at Microsofts printing exemples that came with SDK (or was it
- MSC7.0) the trouble is that even thoug the documentation says that I should
- use the new functions, the sample code does not.
-
- I am now out of ideas (save using banding, could that be the answer? We
- have other programs that print on that same printer that are successful
- without having to use banding though), if someone could give me a hint in
- some useful direction it would be a big help.
-
- Any hints? Thanks !
-
- Ciao /Mikael
-