Print preview - RichTextBox

I am developing a wordprocessor-like project in VB 6.0 for my curriculum. A RichTextbox is provided for typing. I need to include print preview in that project. Can anybody send me a sample program for print preview and also to print the selected page(s)?
Who is Participating?
kkramkiAuthor Commented:
Thanks Mr. Narayanan. I have just downloaded the code from the site you have suggested. I will try this and send my comments later. Also as my system gone for service please allow me to take some days for reply.
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

kkramkiAuthor Commented:
I have checked the code. I have got the idea for preview. However, it doesn't contain how to print the specific range of pages given
kkramkiAuthor Commented:
Dear friends,

I have finished my project. I don't need further comments in this regard. Thank you all.

Hi kkramki,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept n_narayanan's comment(s) as an answer.

kkramki, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
DanRollins -- EE database cleanup volunteer
per recommendation

Community Support Moderator @Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.