home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!caen!nic.umass.edu!amherst!amherst.edu!djvelleman
- From: djvelleman@amherst.edu
- Subject: Printing
- Message-ID: <1992Jul27.175527.1@amherst.edu>
- Lines: 23
- Sender: usenet@amhux2.amherst.edu (USENET News System)
- Nntp-Posting-Host: amh.amherst.edu
- Organization: Amherst College, Amherst Mass.
- Date: Mon, 27 Jul 1992 21:55:27 GMT
-
- I'm trying to implement printing for the first time, and I have a very
- simple question. When do I call PrOpen and PrClose? I remember reading
- somewhere (but I'm not sure where) that I shouldn't just call PrOpen when
- my application starts up and PrClose when I quit, because the user might
- pull out the chooser and change printers in the middle of using my program.
- So when do I do it?
- My guess is that I should respond to the Page Setup command with:
- PrOpen
- PrStlDialog
- PrClose
- and respond to the Print command with:
- PrOpen
- (do the printing)
- PrClose
- Is that right?
- Anything else tricky I should know about as a first-time printer?
- Please e-mail responses, as I don't read this newsgroup regularly. Thanks.
-
- Dan Velleman
- Dept. of Math & CS
- Amherst College
- djvelleman@amherst.edu
-
-