How to insert pagenumbers while printing

Posted on 2008-10-04
Last Modified: 2013-11-26
Sir / Madam

I have used _RichtextBox class from msdn Source : I do not understant howto include pagenumber
Please Help

Sushant Jain
Question by:sushantjain
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3

Author Comment

ID: 22640922
Dear EE

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


Author Comment

ID: 22643201
Dear Experts

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

Sushant Jain
LVL 96

Accepted Solution

Bob Learned earned 250 total points
ID: 22645370
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.

Author Comment

ID: 22693922
Thanks  for help. I am working on it.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question