Solved

How to insert pagenumbers while printing

Posted on 2008-10-04
6
203 Views
Last Modified: 2013-11-26
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
0
Comment
Question by:sushantjain
  • 3
6 Comments
 

Author Comment

by:sushantjain
ID: 22640922
Dear EE

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

Regards
0
 

Author Comment

by:sushantjain
ID: 22643201
Dear Experts

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

Regards
Sushant Jain
0
 
LVL 96

Accepted Solution

by:
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.
http://www.bobpowell.net/beginnersgdi.htm
0
 

Author Comment

by:sushantjain
ID: 22693922
TheLearnedOne
Thanks  for help. I am working on it.
Regards
SJ
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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