The information in this article applies to:
SYMPTOMSWhen using FoxPro for MS-DOS on a stand-alone (non-networked) computer or on a networked computer that has a local printer, you may receive the message "Printer Not Ready" when printing a lengthy document or report to the MS-DOS PRN printer, even though the printer is in the middle of printing that item. CAUSEThis can happen because the printer's memory buffer is full and unable to accept more of the document for the moment. It can happen even though the memory buffer is large, provided the document is even larger. It can also happen with printers that have no memory buffer. RESOLUTIONUse any one of the following three solutions to avoid the problem by instructing both MS-DOS and FoxPro to wait until the printer is able to accept more of the document. Solution OneAdd the following line to the AUTOEXEC.BAT file. Then reboot the computer:
Here n (a numeric value from 1 to 3) is the number of the parallel printer
port.
Solution TwoAdd the following line to the FoxPro CONFIG.FP file. The command instructs MS-DOS to continue retrying until the printer accepts input or the number of tries has been exceeded. It is valid for any IBM-compatible or Epson- compatible printer, even those without a print buffer.
The number specifies the number of FoxPro retries before timing out. The
largest value recognized is one less than a million, which is 999999.
Solution ThreeInclude a user-defined function (udf) in the program that calls the FoxPro report. Here's an example:
The report definition file (<docname.frx>) should contain a single
character variable in the page footer band containing this expression:
This calls the pauser() function contained in the calling program. The
numeric value, in this case 5, denotes seconds; it can be any value from 0
(an indefinite wait) to 65535.
Additional query words: FoxDos
|
|
Last Reviewed: August 25, 1999 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |