>How do I print text files from vfp6. I can not find a print command that does this. I tried setting the printer on and console off and using the vfp6 type command to print the text file. This works but the text file looks awful. For now, I am running the dos type command within vfp to output the textfiles to the printer. I do not like doing this and would like a better solution.
Take a look at my FAQ entry # 524 "How do I copy a file to a printer port" here on UT. It describes how to use the Win32 API call CopyFile() to accomplish this.