I'm modifying an old FoxPro for DOS program. Currently, it will do some processing and print out a nice little report. In an effort to move toward a paperless office (or, at least kill less that half a forest each month), I've been asked to make the report print to a file which will be stored on the network.
The question is, how? I tried a
set device to file report.txt
statement, but it doesn't appear to have worked correctly. I end up with a file that has a few records, none of the headings, and a whole lot of blank lines. I also noticed that a lot of stuff that looked like the report headers was being printed to the screen. What's going on?
The program currently prints using the following type of code:
It also uses
? whatever
statements to print the headers. This is done in a separate program file.
Does anyone have any ideas? Is there anything I should look for?
The question is, how? I tried a
set device to file report.txt
statement, but it doesn't appear to have worked correctly. I end up with a file that has a few records, none of the headings, and a whole lot of blank lines. I also noticed that a lot of stuff that looked like the report headers was being printed to the screen. What's going on?
The program currently prints using the following type of code:
Code:
set device to printer
set print on
@ a,b SAY whatever
? whatever
statements to print the headers. This is done in a separate program file.
Does anyone have any ideas? Is there anything I should look for?