You can actually print to the printer by
using the standard "C" routine fopen().
First you need to find the port to which
the printer is attached to on your machine.
Then you can print stuff with a few lines
of code.
For egs, assuming your printer is attached
to the port "LPT1",
FILE *fp = fopen("LPT1","w"

;
fprintf(fp,"What's up, Doc?\n"

;
fclose(fp);
You can print with these 3 lines only.
For a full discussion on this ,I suggest
you try this link,
Hope this was useful.
Regards,
Anand Pillai
(anand_pillai@delmia.com)