>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?
>
If you've printed it formatted for a specific printer, then you can only send it to a printer of that type, and it has to be sent raw to the desired printer using something like the CopyFile() API that I wrote up in the FAQ. If it's formatted for a specific printer, it also cannot be viewed on-screen. It's suitable only for output to the targeted printer.
If it's a pure ASCII text file, created with the ASCII clause in the REPORT statement, or output using the Generic/Text Only printer driver, Cetin's technique works fine. If you use this approach, you must avoid any use of proportional fonts, must not use any font attributes like boldface, cannot resize the font - IOW, the instant that you use any of the Windows hardware-independence features to make your output look better, you're fried. It is not going to work in a reliable fashion.
John, this has been explained to you several times before - the answer doesn't change.