Solved

How to insert pagenumbers while printing

Posted on 2008-10-04
6
211 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
[X]
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
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

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 (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). 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 vb.net 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