Printing to Paper in Windows using C++

I am trying to write a function that will print out text to paper. I am using C++. I have searched google a lot over the last few weeks and came across windows print spooler api. I'm having trouble understanding it. I'm more of a visual learner. I'm wondering if someone could write a "very" simple print function using windows print spooler api or something easier if it exists and give comments on what each line is and what it does. Also is it possible to print without a print dialog box? If so could you give an example of that? I am a student in college but this is not a homework assignment, it's just so I can learn how to do it in case I need it for future jobs or something. If anybody is willing to give it a try I would appreciate it. Thanks.
Topic archived. No new replies allowed.