merchant@dartvax.UUCP (Peter Merchant) (05/20/86)
I'm using TML Pascal and I'm trying to print on a LaserWriter. It works fine, but when it's done PrPicFile returns a -192 (on a call to PrError). -192 is a Resource Manager error of "Resource Not Found." Now, it works. It prints. I'm just wondering what this error is about. -- "Stop this feeling. Peter Merchant Make it go away."
shebanow@ernie.Berkeley.EDU.UUCP (05/21/86)
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