The Easiest way out is to format the text or whatever as u like and then save it to a file (maybe a temporary file) and close the file. Then invoke the system command (Im specifically talking of the DOS environment). Just say...

system("type filename.ext >> PRN");

where filename.ext is the name of the temporary file that you want to print (which is already formatted). I just issued a type command (a DOS internal command and redirected the output to the Standard Printer).

*Include the header file process.h


Regards,
Sriharsha.