How to send a Windows print file to the printer
Article ID: 130991
Article Last Modified on 2/12/2007
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 6.0 Professional Edition
- Microsoft FoxPro 2.6a Standard Edition
- Microsoft Visual FoxPro 7.0 Professional Edition
- Microsoft Visual FoxPro 8.0 Professional Edition
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q130991
SUMMARY
A file created with the command REPORT FORM formname TO FILE filename will
create a file with printer codes. This file can be printed with this MS-DOS
command:
RUN COPY /b filename LPT1:
MORE INFORMATION
A file created with printer codes cannot be printed using the TYPE command
or by choosing Print from the File menu. These two methods expect a text
file with no printer codes. Using either of these two methods prints the
file with lots of strange looking characters that are the printer control
codes.
The /b in the above command stands for binary. Print files created by the
REPORT FORM command are graphic files, not text files and must be printed
as a binary file not as a text file. The /b command can only be used with
the MS-DOS COPY command.
Keywords: kbhowto kbprint KB130991