>>Hi,
>> I get the point here. However, I don't know how to get my .txt file (created by REPORT FORM .... TO FILE command) to be printed as I designed programmatically. Cetin told me to use TYPE command but it doesn't work. The file was printed unproperly with funny character.
>> How could I get my report (saved in .txt file) to be printed as usual?
>>
>>Thank you
>
>Hi John,
>
>To send to printer the file created with REPORT FORM .... TO FILE use
>COPY /B ... command from the DOS prompt, (or use RUN COPY /B ... command from VFP)
>
Using COPY with the RUN command is not safe; COPY is an internal command, and the RUN will fail on some platforms. If you have to use COPY, you need to explicitly invoke a command processor with the RUN statement:
RUN COMMAND /C COPY /B
Filename known, platform format dependent device idThe avoidance of the command processor invocation, and the platform-specific device name format, are the main reasons to use the CopyFile() API or an automation object like Scripting.FileSystemObject to do the work.