home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3349 < prev    next >
Encoding:
Text File  |  1992-11-10  |  2.3 KB  |  55 lines

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