What I have done is
1. First I write my report in ASCII file.
2. If I want to view in on screen then I use View Ascii file template to generate viewer procedure
3. And the last important step is to print DOS Like report to windows printer. This can be done by using Windows API!
Use:
OpenPrinterA(*cstring,long,long=0),BOOL,PASCAL,RAW
WritePrinter(unsigned,long,ulong,*ulong),BOOL,PASCAL,RAW
ClosePrinter(Unsigned),BOOL,PASCAL
StartDocPrinterA(unsigned,ulong,long),ulong,PASCAL,proc
EndDocPrinter(unsigned),BOOL,PASCAL,proc
EndPagePrinter(unsigned),BOOL,PASCAL,proc
StartPagePrinter(unsigned),BOOL,PASCAL,proc
GetPrinterA(unsigned,ulong,long,ulong,long),bool,pascal,raw
SetPrinterA(unsigned, ulong, long, ulong),bool,pascal,raw
Then you can print your ascci file just like Dos command do with C:>type readme.txt > PRN without going to dos
Note: You must set OS to windows-32 bit in you project properties