Solved

How to insert pagenumbers while printing

Posted on 2008-10-04
6
200 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

896 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now