How to insert pagenumbers while printing

Sir / Madam

I have used _RichtextBox class from msdn Source : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms/html/wnf_RichTextBox.asp. I do not understant howto include pagenumber
Please Help

Sushant Jain
sushantjainAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Bob LearnedConnect With a Mentor Commented:
The RichTextBoxEx class uses an internal PrintDocument.  There are overloaded methods for the DrawString method.  You can draw at a Point(x, y) or inside of a Rectangle (x, y, w, h).  

You will need to learn a little about GDI+, in order to get what you need.

GDI+ Beginner's Guide.
http://www.bobpowell.net/beginnersgdi.htm
0
 
sushantjainAuthor Commented:
Dear EE

The said class uses API and i understand we cannot use drawstring here
Please guide.

Regards
0
 
sushantjainAuthor Commented:
Dear Experts

The said class does not have a call to PageSetupDialog. Can it be done

Regards
Sushant Jain
0
 
sushantjainAuthor Commented:
TheLearnedOne
Thanks  for help. I am working on it.
Regards
SJ
0
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.