I am writing a program in visual C++ and at one point in it, I want to send a file to our network printer. I cannot use a system("file > lpt1") call because I am on a network. What is the code I have to write in order to print a file to a network printer from a C++ program?

Thanks