Message-ID: <36CD5545.5DEF@cbhc.ns.ca> From: David Nugent X-Mailer: Mozilla 3.01 (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Printer Errors using STDPRN under DJGPP? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 34 Date: Fri, 19 Feb 1999 12:12:53 +0000 NNTP-Posting-Host: 142.176.79.34 X-Trace: sapphire.mtt.net 919447993 142.176.79.34 (Fri, 19 Feb 1999 14:13:13 ADT) NNTP-Posting-Date: Fri, 19 Feb 1999 14:13:13 ADT Organization: Business Internet To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Can someone suggest a solution to this problem: 1) I created a file and printed it to disk from windows. I can copy it to a printer using COPY /B filename LPT1: and it prints fine. I was recently helped with this problem because I wasn't setting the mode to binary. I then wrote a program that opened the file and sent it to the printer using fputc. This worked fine. 2) I the switched to a different printer (created a new print file for that printer). Used the same program to try and send the file to this new printer. The data light on the printer starts to flash for a few seconds, and then the error light comes on. Now, if I take the file and copy it from DOS using COPY /B filename LPT1: it works fine. Almost seems like when I print using fputc to stdprn, maybe the printer cannot accept data fast enough, or maybe STDPRN doesn't do any checking to see if the printer is ready to recieve data? I would appreciate any suggestions. Thanks! David Nugent