When creating reports in Visual FoxPro, it’s important to watch when the printer environment is saved on reports. If you create or modify reports in the client’s office, saving the printer environment should produce the desired outcome on the printed report. Generally VFP programmers don’t always have the same printer that their client do. We go about creating and modifying reports without a concern for the printer environment. We test the printed report on our printers and they produce what the client asked for. Then the report gets updated to the client’s version of the program and it doesn’t work. This happened to me last week.
I modified a report and tested it on my computer and it produced the result. Uploaded it to the client site and a part was missing. I tried it again with the same data and the report printed as requested. After further digging, Mike, our senior programmer, found the problem. In the report properties of the particular report, the Printer Environment had been checked. Mike made a rule for our development efforts – make sure that the Printer Environemt on any report is not checked. Inadvertently or accidentally, I broke the rule. So I unchecked the box, recompiled and it worked correctly on the client site. Another happy client.