Telling a printer to print from with in my program??
I am writing a C++ program on Kylix 3 IDE. I need to build a string and send it to my printer for every transaction that occurs. I have no problem building the string and I can save it to a file. If you guys could tell me how I tell LINUX to print my file (within my program mind you) and I need just normal "$lp -receipt reports.txt" command such as this. This will print my saved reports file but i have to be outside my program in a terminal window. Thanks for your help and here is a slimed down version of my code.