How To Print to a File from FoxPro (Printer Problems Test) (117142)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 5.0
  • Microsoft Visual FoxPro for Windows 6.0
  • Microsoft FoxPro for MS-DOS 2.0
  • Microsoft FoxPro for Macintosh 2.6a
  • Microsoft FoxPro for UNIX 2.6

This article was previously published under Q117142

SUMMARY

When you are having printing problems, you should try to print from the operating system, where applicable, as well as from other applications in order to determine where the problem lies. To determine whether printing from the operating system works, you can use a simple test such as the following, which shows how to print to a file from FoxPro. To run this test, issue the following commands in the Command window:
   SET EXCLUSIVE OFF
   SET PRINTER TO junk.txt
   SET PRINTER ON
   LIST STATUS TO PRINTER NOCONSOLE
   SET PRINTER OFF
   SET PRINTER TO
   MODIFY FILE junk.txt
				

REFERENCES

FoxPro "Language Reference"

Modification Type:MinorLast Reviewed:7/1/2004
Keywords:kbhowto kbprint KB117142