home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4394 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.6 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sunic!seunet!enea!tope
  2. From: tope@enea.se (Tommy Petersson)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: VB, Windows and printing
  5. Keywords: VB, printing
  6. Message-ID: <1992Dec21.132516.21464@enea.se>
  7. Date: 21 Dec 92 13:25:16 GMT
  8. Reply-To: tope@enea.se (Tommy Petersson)
  9. Organization: Enea Data AB, Sweden
  10. Lines: 30
  11. Uucp-Path: mcvax!kth!sunic!enea.se!tope
  12.  
  13. We are doing a small application in Visual Basic 2.0 Pro, to run on
  14. Windows 3.1 clients in a Lan Manager Network.
  15.  
  16. Reports from our application need to be printed in landscape orientation
  17. on a Nec PostScript laser printer. This is easy by selecting landscape
  18. mode in Control Panel/Printer. However, everything else the users print
  19. should be portrait, and they of course don't want to manually change the
  20. preferences all the time.
  21.  
  22. There seem to be two choices here:
  23.  
  24. Let Visual Basic still use the "Printer" object, (which only works on
  25. the default printer). For every report in our application, set the printer
  26. to landscape, and reset it afterwards.
  27.  
  28. Forget about the Printer object, stuff the default printer, use Windows
  29. calls to get/change device context and don't mess with the default printer
  30. whatsoever.
  31.  
  32. Which is best? Or is there a better way of doing it?
  33.  
  34. In "your best solution" - how do you do it? (I have looked only briefly
  35. on the GetDeviceContext, ExtDeviceMode, Escape and other calls)
  36.  
  37. Pro's and con's?
  38.  
  39. -- 
  40. =============================================================================
  41.  Tommy Petersson              tope@enea.se              Enea Data AB, Sweden
  42. =============================================================================
  43.