How to Suppress Report Output to the Screen

Last reviewed: June 27, 1995
Article ID: Q98690
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 1.02, 2.0, 2.5, and 2.5a
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxBASE+ for MS-DOS, version 2.1

The SET CONSOLE OFF command suppresses output in a program only and has no effect if issued from the command line. The default for SET CONSOLE is ON.

To suppress the output of a report to the screen while it is being sent to the printer, when a report is created in the report generator, you must print the report from a program, as follows:

   USE <database name>
   SET CONSOLE OFF
   REPORT FORM <report form name> TO PRINT
   SET CONSOLE ON
   WAIT "Finished Printing"

NOTE: The Help file in the FoxPro 2.0 June 3 release does document this correctly. Also, in FoxPro 1.02, new commands were added to suppress report output to the screen. Report output can now be suppressed by using the following code:

   REPORT FORM <report form name> NOCONSOLE TO PRINT
   ***(This works for FoxPro 2.0 and 2.5)

   -or-

   REPORT FORM <report form name> OFF TO PRINT
   ***(This works for FoxPro 1.02 and 2.0)


Additional reference words: FoxDos FoxWin foxbase form 2.00 2.50 1.02 2.10
2.50a RWriter
KBCategory: kbprg
KBSubcategory: FxtoolRwriter


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.