Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ames!haven!wam!nebel From: nebel@wam.umd.edu (Chris D. Nebel) Newsgroups: comp.sys.mac.programmer Subject: Problems using PrGeneral Message-ID: <1990Dec6.204027.13037@wam.umd.edu> Date: 6 Dec 90 20:40:27 GMT Sender: usenet@wam.umd.edu (USENET Posting) Reply-To: nebel@wam.umd.edu (Chris D. Nebel) Organization: University of Maryland at College Park Lines: 20 I'm attempting to write a page setup routine that allows the user to select any of the resolutions that the current printer claims it can handle, e.g. 300 dpi on a Laserwriter. Getting the possible resolutions and setting a new one is no problem; the problem I'm having is in allowing the user to turn the hi-res stuff off. Basically, I want the print record to look as if I never called SetRsl at all. Now, IM-V claims that calling SetRsl with an unsupported resolution will set the print record back to the default resolution, but it seems to do nothing at all! Say I call SetRsl (150,150). Checking prInfo.iHRes, I see that it is now 150. I call SetRsl with (0,0), it gives me a NoSuchRsl error, but if I look at prInfo.iHRes, it's still 150! Am I doing something wrong, or is IM just lying? If the SetRsl (0,0) business just doesn't work, then what's the best tack to take? I considered calling SetRsl (72,72), but I've heard that a default print record is different from one that's been SetRsl'd to 72 dpi. Is this true? If so, how? Thanks, Chris Nebel nebel@wam.umd.edu