You don't need an example from me. Go to the MSDN library and read the documentation for the PrintDocument class, which will include at least one code example plus plenty of explanation. If you don't understand it all, then you should ask more questions but you'll have a more specific idea of what you don't know. If you want help the first thing you should do is read the Help, then look elsewhere if you're still in need.
Also, I'm willing to bet that there are numerous examples already posted on the forum if you care to search.