Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!husc6!panda!genrad!decvax!decwrl!pyramid!pesnta!hplabs!ucbvax!ernie.Berkeley.EDU!shebanow From: shebanow@ernie.Berkeley.EDU.UUCP Newsgroups: net.micro.mac Subject: Re: Printing on a LaserWriter Message-ID: <13922@ucbvax.BERKELEY.EDU> Date: Wed, 21-May-86 10:55:24 EDT Article-I.D.: ucbvax.13922 Posted: Wed May 21 10:55:24 1986 Date-Received: Sat, 24-May-86 04:58:35 EDT References: <4589@dartvax.UUCP> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: shebanow@ernie.Berkeley.EDU.UUCP (Mike Shebanow) Distribution: net Organization: University of California, Berkeley Lines: 17 PrPicFile should only be called when you are doing spooled printing. Since the LaserWriter driver does not spool, you should not call PrPicFile. The code to call PrPicFile in a printer-independent way is: {Variables} hPrint : THPrint; prPort : TPrPort; prStatus : TPrStatus; { Code Fragment } if (PrError = 0) and (hPrint^^.prJob.bJDocLoop = bSpoolLoop) then PrPicFile(hPrint,NIL,NIL,NIL,&prStatus); This will make sure that PrPicFile is only called when appropriate. Andrew Shebanow