Solved

How to insert pagenumbers while printing

Posted on 2008-10-04
6
197 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
Comment Utility
Dear EE

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

Regards
0
 

Author Comment

by:sushantjain
Comment Utility
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
Comment Utility
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
Comment Utility
TheLearnedOne
Thanks  for help. I am working on it.
Regards
SJ
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

11 Experts available now in Live!

Get 1:1 Help Now