home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13069 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!caen!nic.umass.edu!amherst!amherst.edu!djvelleman
  3. From: djvelleman@amherst.edu
  4. Subject: Printing
  5. Message-ID: <1992Jul27.175527.1@amherst.edu>
  6. Lines: 23
  7. Sender: usenet@amhux2.amherst.edu (USENET News System)
  8. Nntp-Posting-Host: amh.amherst.edu
  9. Organization: Amherst College, Amherst Mass.
  10. Date: Mon, 27 Jul 1992 21:55:27 GMT
  11.  
  12.   I'm trying to implement printing for the first time, and I have a very
  13. simple question.  When do I call PrOpen and PrClose?  I remember reading
  14. somewhere (but I'm not sure where) that I shouldn't just call PrOpen when
  15. my application starts up and PrClose when I quit, because the user might
  16. pull out the chooser and change printers in the middle of using my program.
  17. So when do I do it?
  18.   My guess is that I should respond to the Page Setup command with:
  19.       PrOpen
  20.       PrStlDialog
  21.       PrClose
  22. and respond to the Print command with:
  23.       PrOpen
  24.       (do the printing)
  25.       PrClose
  26.   Is that right?
  27.   Anything else tricky I should know about as a first-time printer?
  28.   Please e-mail responses, as I don't read this newsgroup regularly.  Thanks.
  29.  
  30.   Dan Velleman
  31.   Dept. of Math & CS
  32.   Amherst College
  33.   djvelleman@amherst.edu
  34.  
  35.