Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!rdclark From: rdclark@Apple.COM (Richard Clark) Newsgroups: comp.sys.mac.programmer Subject: Re: How do you tell when the user changes printers? Message-ID: <48473@apple.Apple.COM> Date: 25 Jan 91 18:14:11 GMT References: <12776@hubcap.clemson.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 28 jcocon@hubcap.clemson.edu (james c oconnor) writes: >How do you tell from your printing code when the user changes chooser >printers? I'd like to warn the user that the printer has changed since >his last "page setup" and defaults are being used. Jim -- Just call PRValidate (which takes a handle to the printing info record) before you start printing. It returns TRUE if the recore had to be changed to accomodate a change in printers. (It's in volume II, page 158 of Inside Macintosh. See also Tech Note #160.) -- -----------------------------+------------------------------------------------- Richard Clark | "If you don't know where you're going, Instructor/Designer | don't go there" -- John Sybalsky Apple Developer University +------------------------------------------------- AppleLink, GEnie: rdclark Internet: rdclark@apple.com CI$: 71401, 2071 SnailMail: Apple Computer / 20525 Mariani Ave. MS 75-6U / Cupertino, CA / 95014 -- -----------------------------+------------------------------------------------- Richard Clark | "If you don't know where you're going, Instructor/Designer | don't go there" -- John Sybalsky Apple Developer University +------------------------------------------------- AppleLink, GEnie: rdclark Internet: rdclark@apple.com CI$: 71401, 2071 SnailMail: Apple Computer / 20525 Mariani Ave. MS 75-6U / Cupertino, CA / 95014