Path: utzoo!attcan!uunet!seismo!ukma!uflorida!mephisto!prism!gitpyr!mlw From: mlw@pyr.gatech.EDU (Michael Williams) Newsgroups: comp.lang.pascal Subject: Printing from Turbo Pascal Keywords: Help!! Message-ID: <9909@pyr.gatech.EDU> Date: 28 Feb 90 15:18:51 GMT Reply-To: mlw@pyr.gatech.edu.gatech.edu (Michael Williams) Organization: Georgia Institute of Technology Lines: 20 I am having difficulty printing a large file from Turbo Pascal 4.0. It seems that the CPU overwhelms the printer's buffer and causes an I/O error. I have written some code to detect if the printer is OK, but it doesn't work reliably. (It does work most of the time). regs.ah := 2; regs.dx := 0; intr(23,regs); if regs.ah = 144 then printer_ok := true; I also thought about exec'ing the DOS print command to attempt to print in the so-called "background". However, that involves calling a TSR from a program, which is probably not a good idea. Any suggestions??? -- Michael Williams Georgia Institute of Technology, Atlanta Georgia, 30332 uucp: ...!{akgua,allegra,amd,hplabs,ihnp4,seismo,ut-ngp}!gatech!gitpyr!mlw ARPA: mlw@pyr.gatech.edu