I'm trying to print a Text file using Borland (example: Test.txt) without opening the file (I'm done with my program, and this is a feature I'love to have by pressing a "Print report" button) with no success. Any one done this before?


So you want to add a new feature without doing any work? ;) Since the data is already in a file, the path of least resistance is to send it to the spooler by way of a system command:

case ON_LEFT_CLICK: system ( "print test.txt" ); break;