I need help, cuz I don't have a clue how to program printers or anything.

Here are the components I have (in terms of this subject):
Main.h (Form)
btnpgsetup (Page Setup button)
btnPrint (Print Button)
txtdisplay (RichTextBox)
PrintDocument1 (PrintDocument control)
pageSetupDialog1 (Page Setup)
PrintDialog1 (PrintDialog control)

What I'm trying to do is have the user set up his preferences in the page setup dialog box, then press print, showing a print dialog, then after clicking 'OK', printing the page with the page setup, colors and font.

Can someone help me out with this?


www.codeproject.com has several printing programs that will show you how to do that. Some are for MFC and some not. That site has hundreds of programs and tutorials covering almost everything Windows programming has to offer.