Path: utzoo!utgpu!attcan!uunet!husc6!linus!dartvax!eleazar.dartmouth.edu!earleh From: earleh@eleazar.dartmouth.edu (Earle R. Horton) Newsgroups: comp.sys.mac.programmer Subject: Re: How to change a printing port's portrect? Message-ID: <9566@dartvax.Dartmouth.EDU> Date: 27 Jul 88 18:35:57 GMT References: <873@taux01.UUCP> Sender: news@dartvax.Dartmouth.EDU Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton) Organization: Dartmouth College, Hanover, NH Lines: 24 In article <873@taux01.UUCP> taux01!cyosta@nsc.UUCP (Yossie Silverman) writes: >I am trying to print some stuff and I discovered that when I open >a printing port, I get the portrect of the screen... > Anyway, after many games I figured out that I should change >the clipRect with the clipRect call, the viewRgn with a rectRgn call >(directely accessing the grafPort record element), and the >bitmap's bounds variable. What is in the Print Record whose Handle you pass to PrOpenDoc? You shouldn't have to change this stuff, but rather should negotiate with the Printing Manager to set up a Print Record first. Then when you open the printing port you should get a portRect which corresponds to the prInfo.rPage Rect in the Print Record. Are you calling PrintDefault and/or the Printing Dialog routines before opening the port? Sorry to answer a question with another question, but it appears to need it. What games were you playing? Earle R. Horton. H.B. 8000, Dartmouth College, Hanover, NH 03755